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
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.

 

 

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.