Jump to content

Cannot upload ".url" file with PHP form...


Recommended Posts

Hi, I've run into a strange error (maybe a bug) when trying to upload a simple ".URL" file with the "move_uploaded_file" function in PHP.

 

Instead of just uploading the file, like "homepage.url" for example, it attempts to save the contents from that website to my directory!

 

Any other filetype uploads just fine.  It's as if it is using the .url file as a pointer to another location instead of just treating it as a file itself.

 

Any help or workarounds would be greatly appreciated!  Thanks in advance.

 

Eric

 

Link to comment
https://forums.phpfreaks.com/topic/100693-cannot-upload-url-file-with-php-form/
Share on other sites

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.