Topic on Project:Support desk

Jump to navigation Jump to search

The file you uploaded seems to be empty. This might be due to a typo in the filename. Please check whether you really want to upload this file.

Summary by Mbrooksham

Redefined the temporary folder used by PHP and set permissions on that folder. (talkcontribs)

Getting the above error when a user goes to upload an image. Followed the instructions outlined in Manual:Configuring file uploads/en

Including setting permissions in %SystemRoot%\TEMP

Are there any other directories I could need to check the permissions for?

IIS 6.2

Mediawiki 1.32

PHP 7.1.26

MySQL 5.6.35

Thanks lads

Mbrooksham (talkcontribs)

Woops, was signed out - this is my post.

Examknow (talkcontribs)

You should make sure you typed the same file extension as you uploaded. Also when you are done with this discussion we can hide it for you if you do not wish to have your ip visible.

Mbrooksham (talkcontribs)

I don't mind so much about the visibility of my IP, thanks though.

I can confirm it takes the same extension as the file type.

Ciencia Al Poder (talkcontribs)

Does it happen on every upload attempt? Have you tried with a small image?

Mbrooksham (talkcontribs)

Every upload attempt, I've tried large and small images.

Ciencia Al Poder (talkcontribs)

Try to point upload_tmp_dir to a folder under C:\temp\ or similar (see this), and give write permissions to everyone on that folder. If that works, then tune up permissions as needed to make it more safe.

Mbrooksham (talkcontribs)

Thanks a bunch, worked like a charm :)

Its IIS's fault being so fickle...

Stevy7 (talkcontribs)

I had same problem. But when I change to another browser it works again.

Mbrooksham (talkcontribs)

For me it was IIS not liking the default temporary folder.

Have you fixed this on your set up?