Jump to content

auto-choose upload file


Stooney

Recommended Posts

curious if its possible to define which file to upload for a user.  So say they run a game which stores stats in a file, is there a way for them to say log in to the site and somewhere in the script just grab the file from their computer and update the stats so they dont have to manually sit there and choose which file to upload?  tyty

Link to comment
https://forums.phpfreaks.com/topic/40381-auto-choose-upload-file/
Share on other sites

curious if its possible to define which file to upload for a user.  So say they run a game which stores stats in a file, is there a way for them to say log in to the site and somewhere in the script just grab the file from their computer and update the stats so they dont have to manually sit there and choose which file to upload?

 

No (unless you find a vulnerability of some sort). Nothing would stop a malicious site from having users upload sensitive documents if that were the case.

 

 

if you are using an form to upload the file then you can just have the default directory for the file (c:/program/dir/file.ext) as the default value for the field, so even though they still have to click upload, they dont have to put in any information. (unless they installed else where in which case you could use a cookie to remember where the file is at and have that inserted in the default value.)

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.