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!
Now the directory is 777, so don't know what else is the problem.
Please help!
No...it just shows the loading circle next to the upload button forever...nothing happens..no upload shows up.Jtc-uk wrote:does it prompt any message when uploading in the admin?
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?
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');
}
}
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');
}
}
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');
}
}
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');
}
}
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:
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.
/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');
Mybpr103 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:
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.Code: Select all
if ($this->request->files['image']['size'] > 300000) { $json['error'] = $this->language->get('error_file_size');
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.
Who is online
Users browsing this forum: No registered users and 42 guests