Is there anyway to download images for path which has force download enabled.
If i try to download images from URL like this http://www.marcofinearts.com/px-mini.htm
it will download only first image(Force download disabled). Is there anyway to download images which has force download enabled?
Can download image
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
Re: Can download image
Works just fine. You just have to add
*.
to the Target files, because the second address file name is actually "media" - without extension. I also set the "Change file extension to JPG" flag in the "Save - Naming" section and the project finished with 2 JPEGs in my Destination folder.
*.
to the Target files, because the second address file name is actually "media" - without extension. I also set the "Change file extension to JPG" flag in the "Save - Naming" section and the project finished with 2 JPEGs in my Destination folder.
-
- Posts: 3
- Joined: 28 Nov 2012, 03:39
Re: Can download image
Thank you. That worked.
I think extension issue can be easily fixed if i rename file using URL string.
I attached id at the end and used query string for file name.
I have one more issue though.
do you know how to create folder too? Is there anyway i can pass folder value in query string same way i am doing file name.
I have also tried this. but didn't work. http://www.marcofinearts.com/px-mini.htm it downloaded files but dint put them in folders.
I think extension issue can be easily fixed if i rename file using URL string.
I attached id at the end and used query string for file name.
I have one more issue though.
do you know how to create folder too? Is there anyway i can pass folder value in query string same way i am doing file name.
I have also tried this. but didn't work. http://www.marcofinearts.com/px-mini.htm it downloaded files but dint put them in folders.
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
Re: Can download image
Currently you can use only one parameter for file name and nothing for folder. Sorry. I'll add this feature to the to-do list.
-
- Posts: 3
- Joined: 28 Nov 2012, 03:39
Re: Can download image
Can you please let me know when you add this new feature?
I've bought current version but I cant use it until i figure out something for creating folders.
I've bought current version but I cant use it until i figure out something for creating folders.
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
Re: Can download image
OK, I'll try to add this to the next version.
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
Re: Can download image
OK, the new version was released and the requested feature was added. Now there are more options in the Save - Naming section of the project properties:
You can now use one URL parameter for file name and another one - for folder name (this folder will be created inside the main Destination folder of the project). Another improvement - values of these parameters are treated as paths, so they can contain sub-folders. For example:
http://site.com/script?id=folder1/filename2.jpg
If you set to use the value of the parameter "id" as file name, then EPF will create a folder called "folder1" inside the Destination folder and save a file called "filename2.jpg" inside that folder.
Another example:
http://site.com/script?name=fn288.jpg&key=ALK/99KK
If you use value of the "name" parameter for file name and the value of the "key" parameter for folder name, then the full file name of the saved file will be:
DESTINATION_FOLDER\ALK\99KK\fn288.jpg
You can now use one URL parameter for file name and another one - for folder name (this folder will be created inside the main Destination folder of the project). Another improvement - values of these parameters are treated as paths, so they can contain sub-folders. For example:
http://site.com/script?id=folder1/filename2.jpg
If you set to use the value of the parameter "id" as file name, then EPF will create a folder called "folder1" inside the Destination folder and save a file called "filename2.jpg" inside that folder.
Another example:
http://site.com/script?name=fn288.jpg&key=ALK/99KK
If you use value of the "name" parameter for file name and the value of the "key" parameter for folder name, then the full file name of the saved file will be:
DESTINATION_FOLDER\ALK\99KK\fn288.jpg