Problem: No file uploaded or invalid file type!


#1

I got this error every time when upload images, Logo or favicon file. I try with .png, .jpg files but same problem. “No file uploaded or invalid file type!”
OJS 3.1.0.1
Web server: Windows, Plesk Panels
Database: MySql


#2

Hi @mohdwaseem

This error message it is most likely related to writing permission in your file system. Please review your public, cache, files_dir settings to double check that your webserver software is allowed to write in it.

Regards,
Israel Cefrin
Public Knowledge Project Team


#3

Hi. @israel.cefrin
I checked all the permissions all are writables.


#4

Hi @mohdwaseem

Please, check also if your IIS is able to handle PNG mime/type and other files you are attempting to upload.

Regards,
Israel Cefrin
Public Knowledge Project Team


#5

MIME types are ok


#6

Have you checked your php and webserver error log ? They will show you some message related to this event.
I don’t remember where IIS stores its error log, but in plesk panel it will show probably.

Regards,
Israel Cefrin
Public Knowledge Project Team


#7

No php_error on this event only IIS Access logs found:
POST /index.php/iabcr/$$$call$$$/tab/settings/website-settings-tab/save-file fileSettingName=homepageImage&fileType=image HTTP/1.1

GET /index.php/iabcr/notification/fetchNotification _=1516293911424 HTTP/1.1


#8

Hi @mohdwaseem,

See this FAQ entry.

Regards,
Alec Smecher
Public Knowledge Project Team


#9

Hii, @israel.cefrin, @asmecher Issue Reolved, I moved my site to cpanel hosting. In plesk the issue is not resolved.