Problem: No file uploaded or invalid file type!

errorOJS

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

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

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

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

png

MIME types are ok

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

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

Hi @mohdwaseem,

See this FAQ entry.

Regards,
Alec Smecher
Public Knowledge Project Team

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

1 Like