immediate Download directly from url
Posted: 11 Apr 2011, 08:07
Hello,
I have searched for information on my question. May be it is there, but I could not find. So let me explain my need.
I need to provide the url to a specific file together with a userid / password for a specific user. And I want the user to be able to include this url in a php script which will automatically login and download the file.
Currently, when I try to download a file manually, following is the procedure:
a) login to Joomla 'userid' / 'password'
b) Go to phoca menu and navigate to the specific section
c) I come to the page where i see the list of files available under a section and on the right hand side of each file, there are two buttons ' Details' & 'Download'.
d) If I point my mouse the the button 'Download' I can see the exact url for the button, at the bottom left side of my window.
It is of the format: http://mydomain.com/directory/file/filename
e) If I click on the button it brings me to another download page where again there is another button to click to download.
f) The url in the browser changes to :http://mydomain.com/directory/file/filename
g) But I cannot use this url above in a php script, since I have to click on one more button 'Download' and I cannot see any specific url.
My request: is there an option to configure so that when I click on the 'Downlod' button in step d above it will immediately download the file, instead of taking me to one more page where I have to manually click on another 'Download' button ?
With some of the other download applications, I can do the above and I can use a php script to automatically login and download the file. I do like the Phoca Download Application features and I really wish I can find a way to configure Phoca to meet my download procedure need.
Appreciate some solution soon.
Best Regards,
Festus
I have searched for information on my question. May be it is there, but I could not find. So let me explain my need.
I need to provide the url to a specific file together with a userid / password for a specific user. And I want the user to be able to include this url in a php script which will automatically login and download the file.
Currently, when I try to download a file manually, following is the procedure:
a) login to Joomla 'userid' / 'password'
b) Go to phoca menu and navigate to the specific section
c) I come to the page where i see the list of files available under a section and on the right hand side of each file, there are two buttons ' Details' & 'Download'.
d) If I point my mouse the the button 'Download' I can see the exact url for the button, at the bottom left side of my window.
It is of the format: http://mydomain.com/directory/file/filename
e) If I click on the button it brings me to another download page where again there is another button to click to download.
f) The url in the browser changes to :http://mydomain.com/directory/file/filename
g) But I cannot use this url above in a php script, since I have to click on one more button 'Download' and I cannot see any specific url.
My request: is there an option to configure so that when I click on the 'Downlod' button in step d above it will immediately download the file, instead of taking me to one more page where I have to manually click on another 'Download' button ?
With some of the other download applications, I can do the above and I can use a php script to automatically login and download the file. I do like the Phoca Download Application features and I really wish I can find a way to configure Phoca to meet my download procedure need.
Appreciate some solution soon.
Best Regards,
Festus