Post by theemorgandorfer » Fri Nov 19, 2010 12:02 am

Ive recently upgraded my site to 1.4.9 I believe. Now when I got to upload an image for a product, it tells me: Warning! Please select a directory! I've changed permissions to 777, still not working. Both config files say the images are going to the right directory, mysite.com/images/

Sometimes ill get a warning to upload a smaller file, sometimes ill get a warning to select a file ( which I clearly did)

Any ideas?

Thank you in advance


Posts

Joined
Tue Oct 27, 2009 9:58 pm

Post by ultraspoon » Fri Nov 19, 2010 12:12 am

I've had this problem quite a lot whilst adding pictures, for myself, it sorts it self out on its own, after giving it a few minutes.

I found that if the pictures are above a certain file size can cause problems, I'm not sure what the limit is, something like 1mb I think.

If this problem doesn't sort itself out, you can try uploading the pictures via FTP.

Active Member

Posts

Joined
Mon Oct 18, 2010 5:56 pm

Post by theemorgandorfer » Fri Nov 19, 2010 8:44 am

Well, it doesn't really seem to be "working itself out" i've tried and tried, different files, again and again. I can easily FTP the images, but the site belongs to someone who is not computer savy and extra steps is not a good idea for them.


Posts

Joined
Tue Oct 27, 2009 9:58 pm

Post by serbaserbiz » Tue Feb 01, 2011 10:35 pm

try this : i've experienced it myself..

download back your opencart 1.4.9.1..
recheck either all files are there or have some file is missing..
(try look at IMAGE file)
then just upload it back..

i hope this one can help..(sorry if my english bad :)

Newbie

Posts

Joined
Tue Feb 01, 2011 10:24 pm

Post by Morningshadow » Wed Apr 13, 2011 11:52 am

I am having the same problems. A description is found HERE. I am hoping that if we link the two threads together, we might be able to find a few possible answers, at least.

Newbie

Posts

Joined
Wed Apr 13, 2011 11:36 am

Post by eb_dev » Mon Sep 05, 2011 4:45 pm

Thought I would post a reply to this as had the same issue and resolved it, in the /admin/controller/common/ folder there is a file called filemanager.php, this is what the image manager calls when it's uploading files. Within the upload function there are these lines:

Code: Select all

				$directory = rtrim(DIR_IMAGE . 'data/' . str_replace('../', '', $this->request->post['directory']), '/');
				
				if (!is_dir($directory)) {
					$json['error'] = $this->language->get('error_directory');
				}
This checks the image directory to be uploaded to exists. So, to see what directory was being checked I added;

Code: Select all

$json['directory'] = $directory;


then uploaded the filemanager.php file, attempted to upload an image again and checked the directory which appeared in the json response in firebug (net tab), I found that I had deleted the data directory so the is_dir($directory) function was returning false and firing the error notification.

I hope this helps someone with this same issue.

eb_dev


New member

Posts

Joined
Fri Jan 01, 2010 12:11 am

Post by somnik » Wed Oct 22, 2014 10:50 am

hello every one ! i get the same warning, but i can't the images for products on the dashboard or the image manager
so i can't add any new products because i can't upload images. All the folders and images are in the hosting, i see them on filezilla , but they don't appear on oc's image manager. it is very weird! Any ideas/suggestions?

thank you for reading!

Attachments

image manager.png

image manager.png (41.7 KiB) Viewed 2434 times

data.png

data.png (12.67 KiB) Viewed 2434 times

dashboard.png

dashboard.png (14.13 KiB) Viewed 2434 times


User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am
Who is online

Users browsing this forum: No registered users and 29 guests