Can download image

Post Reply
epf
Posts: 3
Joined: 28 Nov 2012, 03:39

Can download image

Post by epf » 28 Nov 2012, 03:43

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?

Maxim
Site Admin
Posts: 944
Joined: 02 Mar 2009, 17:02

Re: Can download image

Post by Maxim » 28 Nov 2012, 16:17

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.

epf
Posts: 3
Joined: 28 Nov 2012, 03:39

Re: Can download image

Post by epf » 28 Nov 2012, 21:22

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.

Maxim
Site Admin
Posts: 944
Joined: 02 Mar 2009, 17:02

Re: Can download image

Post by Maxim » 29 Nov 2012, 11:28

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.

epf
Posts: 3
Joined: 28 Nov 2012, 03:39

Re: Can download image

Post by epf » 29 Nov 2012, 21:38

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.

Maxim
Site Admin
Posts: 944
Joined: 02 Mar 2009, 17:02

Re: Can download image

Post by Maxim » 29 Nov 2012, 22:21

OK, I'll try to add this to the next version.

Maxim
Site Admin
Posts: 944
Joined: 02 Mar 2009, 17:02

Re: Can download image

Post by Maxim » 12 Dec 2012, 15:12

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:

Image

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

Post Reply