Skip to content
Advertisement

File upload does not work in PHP on Apache Server

I’m trying to upload an image file onto a Web server running on a Raspberry. The image should be uploaded through a form and forwarded to a PHP script. I checked if the folders are set to the proper permissions and it seems OK. Code seems to run without a problem.

Here is the form:

JavaScript

The file selected in this form will be sent to this script:

JavaScript

When I execute the script the output on the page is as following

JavaScript

Does anyone have a clue what I did wrong or what went wrong?

Advertisement

Answer

File will be stored in temporary location- Give full path of the upload location.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement