1

Is there a way that I can allow a user to upload a file by providing the filename/directory for the file in a get variable (or some way other than using a form)?

Essentially, I'd like the user to be able to do something like this:

http://example.com/upload.php?file=C:/files/myFile.txt

and have upload.php handle the upload.

I've been looking at this to try to figure out how to do this, along with a couple of other resources, but they're all focused around using forms.

I need to be able to allow an app to go to my php page and provide a file to be uploaded without a prompt.

It doesn't have to be in a GET, but I CANNOT PROMPT for a file.

Any thoughts?

JEJoll
  • 547
  • 1
  • 6
  • 20

1 Answers1

0

Sorry, that's not possible. You can upload file using post request. Why are you trying to send data using get request?

Fruchtzwerg
  • 10,999
  • 12
  • 40
  • 49
adeel butt
  • 21
  • 1
  • I'm developing a page that will interact with an app running on an ipad. The app should be able to automatically connect and upload a file. There should be no file upload prompt. – JEJoll Apr 11 '16 at 13:03