0

Magento 1.9 and php7.0  - image upload error File was not uploaded

Hello, We have face issue in admin area. "Showing error File was not uploaded"

1 Answers1

0

Open

lib/Varien/File/Uploader.php

and make this change https://i.stack.imgur.com/6uVeh.jpg .

source info from error php 7.0

Option 2 . Patch SUPEE-7405 made changes on permissions files .

Upload File Permissions

The patch restores less restrictive file permissions (0666 for files and 0777 for directories) as more strict permissions introduced by the original SUPEE-7405 patch caused many merchants not to be able to view uploaded product images, depending on hosting provider configuration.

To fix that: on this file lib/Varien/File/Uploader.php

change this chmod($destinationFile, 0640) to chmod($destinationFile, 0644)

Ylgen Guxholli
  • 2,585
  • 12
  • 20