PHP Installed on a Windows Server most of the site is working fine except when an image does not upload to a specific folder.
Details below, grateful for any suggestions or help.
When uploading to a Windows Server in PHP running on an Apache Server the image does not upload to the server.
We have used two different codes to upload an image to a specif folder mentioned below:
Method 1 - Uploading image to the folder name
move_uploaded_file($file, $upload_location)
Method 2 - Uploading it to the full address of the folder where it was ment to be.
$upload_location="photos/"
Neither method worked and the image did not load.
We think that something is preventing the image to upload, we have not set any security settings on the server, however when the same code was used for a different server under the same structure the image uplaoded successfully using the codes mentioned above.
Thank you.