Upload file

 This page show you how to upload file from local file system and handle the file in the server.

File upload form

 First of all, you have to make a page with form to uploda file.


 In this form, don't forget to set the "enctype" attribute as "multipart/form-data". If you miss it, it does not work.

In this form, you have to write like below. This is the file selection input.

Posted script

 When you post a file from the form, the uploaded file is stored in "/ALINOUS_HOME/tmp/" folder, and it is named below.


 Next code shows you how to

  • Validate file input
  • Handle uploaded file

Go to Top