0

How to add an space in website where users can upload files

31st Mar 2017, 3:11 AM
Shivam Pande
Shivam Pande - avatar
2 Antworten
+ 2
The space would be on your host, create a folder and change permissions to allow read write but i suggest not to allow users to execute. Do this through control panel of your host site, using file manager would be easiest. Then you will need 2 php files The form (see http://php.net/manual/en/features.file-upload.post-method.php) And the action php file to replace the __url__ in the form script Your action.php file should use the uploaded information, in the $_files array to write the information to your directory. This method allows you to avoid using javascript.
31st Mar 2017, 3:32 AM
John Mills
John Mills - avatar
0
thanx
31st Mar 2017, 3:34 AM
Shivam Pande
Shivam Pande - avatar