Jump to content

Download and rename images


etrader

Recommended Posts

This solution is perfect, but is it possible to get the file extension from the downloaded file?

 

Now we get the extension from the $test string, but if downloading from e.g. file sharing websites, the url may not include the file name. And additionally, if the rar or zip file contains part1 part2, it will be considered as a part of the file name. I think if first downloading the file on the server, we can get the file information, then renaming.

 

I have explored some codes, but none of them are comparable with your elegantly short idea; this is the reason that I continue this thread.

 

Thanks  ::)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.