remove cache in webrrot files directory - cakephp-1.2

How to disable cache for files folder in webroot for cake 1.2 version
Problem:
i have pdf files uploaded to webroot/files/products/example.pdf
if i access http://example.com/cakeproject/files/products/example.pdf , pdf is displayed
and when i update example.pdf with new pdf and access http://example.com/cakeproject/files/products/example.pdf , the old pdf is displayed.
How can this be solved?

you need to clear this folder :
yourwebsite\app\tmp\cache

Related

In codeigniter Image is uploading into database but not inserting into image folder

$config['upload path'] = './assets/uploads/images';
This code is not working for my project. Here image is uploading into the database but not inserting into folder so not showing in show page in server.
Folder structure is project name/assets/uploads/images.....try everything but not working required help.
controller
For security reasons, codeigniter 4 does not allow uploads outside the 'writable' folder. Make sure that your uploads path is rooted in this folder and that your 'assets' folder is located in the 'writable' folder. It should work.
$config['upload_path'] = WRITEPATH . 'assets/uploads/images';

How can I download zip file using angularjs

I am using angularjs.I am getting zip file URL from the server.
I am using below code to download my file.
Example 1
Filename comes from the angular controller.
From the above code I will be able to download the file but in the download folder.How can I download that file in specified location ?
just open that link in new tab it will automatically be download.
window.open(wholeURLToDownload);

Download file in ionic application

I'm creating an app with ionicframework. I want that the user can downolad pdf files which are in the app. In which folder i must place the files, in template folder? How can the user download the files, i must use < a ui-sref="file.pdf" >< /a >?
Thank you.
If your PDF files are in the application, you could save them in temporary filesystem and after open with default app (move them).
To get access to the device’s files and directories, you need work with plugin $cordovaFile (http://ngcordova.com/docs/plugins/file/). Here you will find the file system layout.
To open a file on your device with its default application use $cordovaFileOpener2 (http://ngcordova.com/docs/plugins/fileOpener2/)
I'm trying don't move file.
I used InAppBrowser plugin (in ionic 2 project) and i have a 'a.pdf' file in 'www' folder. i use this code:
In .js file:
> openURL(url) {
> InAppBrowser.open(url,'_system','location=yes'); }
In .html file:
<button (click)="openURL('a.pdf')">Open pdf
</button>
When i press on button the device ask me to select a program to open file, then i select adobe reader pdf. But adobe reader pdf tells me 'impossible to load file ...'.
What is the right path (url) to call openURL(url)?
Thank you.

Is it possible to set a favicon to a pdf file in my cakephp website

The pdf links in my cakephp website doesn't display the favicon,is it possible to get my favicon to display on the pdf page?Right now I use the following line in my default.ctp to display favicon on my website but it doesnt work with pdf files
echo $this->Html->meta('icon',$this->Html->url('/favicon.ico'));
Is it possible?
Put the favicon file in the root directory instead of a subdirectory. I had the same issue until I moved it out of my images directory. Test with a different browser/computer or clear your cache to refresh the favicon.

ubercart file download setting problem

Hi I am using drupal 6.x and ubercart 2.x. I trie dto create a product,but when it comes to add the file download feature I am getting some issue. I put a folder called downloads in the drupal folder and one file inside the download folder.then I gave the path as "drupal/downloads but it is telling that drupal/downloads is not a valid file or directory"
I tied the following file paths too
1.www.mysite.com/drupal/downloads/faq.ods
2.drupal/downloads/faq.ods
3.drupal/faq.ods(after putting faq.ods in the drupal folder.
But still I am getting the same message. Plesae some body help me
It is looking for a path rather than a URL. You should probably aim to find out from your hosting company what the absolute path for your webroot is (e.g. www.mysite.com may actually be on disk as /users/mysite.com/httpdocs) and put in that followed by /drupal/downloads

Resources