Jump to content

how to save file


mpsn

Recommended Posts

I want to save files to a directory. I am using a input type="text" to let user paste directory, then they choose the file from an upload form, then press submit.

So here is my script:

==============

<form method="post" action="" enctype=...>

<input type="text" name="textboxDir" />

<input type="file" name="uploadedFile"/>

</form>

 

So how do I now save the uploaded file via $_POST['uploadedFile'] to the text box directory: $_POST["textBoxDir"]?

 

Any help much appreciated!

Link to comment
https://forums.phpfreaks.com/topic/251417-how-to-save-file/
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.