Post by repurhd » Sun Mar 16, 2014 1:19 pm

I am having problems uploading product images to opencart. I try uploading through the admin GUI, didn't work..i also try using FTP method, didn't work either.

Now the directory is 777, so don't know what else is the problem.

Please help!

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am

Post by Jtc-uk » Sun Mar 16, 2014 9:28 pm

does it prompt any message when uploading in the admin?

New member

Posts

Joined
Sat Jan 19, 2013 5:20 am

Post by repurhd » Mon Mar 17, 2014 12:10 am

Jtc-uk wrote:does it prompt any message when uploading in the admin?
No...it just shows the loading circle next to the upload button forever...nothing happens..no upload shows up.

Also i checked the error log and i see the /system/library/image.php permission problem and even changed to 777, which i know is stupid...but still nothing worked. I changed almost everything to 777, at least that was noted on the error log and now no more error reported and yet no image uploaded.

Also why can't opencart just allow ftp upload and then notice the images in the admin panel?

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am

Post by Jtc-uk » Mon Mar 17, 2014 2:48 am

do you have photoshop?

New member

Posts

Joined
Sat Jan 19, 2013 5:20 am

Post by repurhd » Mon Mar 17, 2014 8:43 am

Jtc-uk wrote:do you have photoshop?
yes i do

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am

Post by repurhd » Mon Mar 17, 2014 10:27 am

The error message i am getting now

PHP Warning: move_uploaded_file failed.....function.move-uploaded-file.... to open stream: Permission denied in /admin/controller/common/filemanager.php line 480

line 480

if (!isset($json['error'])) {
if (@move_uploaded_file($this->request->files['image']['tmp_name'], $directory . '/' . $filename)) {
$json['success'] = $this->language->get('text_uploaded');
} else {
$json['error'] = $this->language->get('error_uploaded');
}
}

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am

Post by repurhd » Tue Mar 18, 2014 8:30 am

I need please

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am

Post by repurhd » Wed Mar 19, 2014 10:07 am

The error message i am getting now

PHP Warning: move_uploaded_file failed.....function.move-uploaded-file.... to open stream: Permission denied in /admin/controller/common/filemanager.php line 480

line 480

if (!isset($json['error'])) {
if (@move_uploaded_file($this->request->files['image']['tmp_name'], $directory . '/' . $filename)) {
$json['success'] = $this->language->get('text_uploaded');
} else {
$json['error'] = $this->language->get('error_uploaded');
}
}

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am

Post by bpr103 » Wed Mar 19, 2014 1:13 pm

I know you changed permissions, but make sure these are writable (mine are 755):
/image/
/image/data/

Also, if it's taking forever to upload an image try using smaller images just as a test. I think there is a file limit size in that filemanager.php file:

Code: Select all

				if ($this->request->files['image']['size'] > 300000) {
					$json['error'] = $this->language->get('error_file_size');
I have been able to upload larger images via FTP and get them to show up in the OC admin panel, bypassing that file size limit.

Newbie

Posts

Joined
Thu Jul 11, 2013 8:12 pm

Post by repurhd » Mon Mar 31, 2014 1:04 am

bpr103 wrote:I know you changed permissions, but make sure these are writable (mine are 755):
/image/
/image/data/

Also, if it's taking forever to upload an image try using smaller images just as a test. I think there is a file limit size in that filemanager.php file:

Code: Select all

				if ($this->request->files['image']['size'] > 300000) {
					$json['error'] = $this->language->get('error_file_size');
I have been able to upload larger images via FTP and get them to show up in the OC admin panel, bypassing that file size limit.
My

image is 777
image/data is 777
and not working still

The files am uploading aren't even close to 300MB. These are tiny images like 25KB size.

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am

Post by repurhd » Mon Mar 31, 2014 1:14 am

Finally worked....changed

image/data from 755 to 777!!!

New member

Posts

Joined
Mon Feb 17, 2014 10:29 am
Who is online

Users browsing this forum: No registered users and 42 guests