Post by tomsky » Thu Mar 17, 2011 6:37 pm

I'm trying to upload files for download, however every time I get an error: 'Warning! Please select a file!' once upload is finished. Tried it several times with three different browsers, with no luck... The files are zip archives about 3.5 MB.


Regards
tomsky

Regards
Thomas
Web design and development
http://www.goInventive.co.uk


New member

Posts

Joined
Fri Jul 23, 2010 10:20 pm

Post by Daniel » Fri Mar 18, 2011 9:41 pm

are u on a mac?

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

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

Daniel wrote:are u on a mac?
I have the same problem. I am not running a mac... rather MS7 at the moment. When I go to upload say, a picture for the manufacturer spot, it will let me browse for the picture, I am able to select it (or double-click, even). The file browser closes and I get a javascript alert, telling me to select a file. Many times tried and failed, not only for uploading pics. Not sure where to BEGIN to look for problem source.

I found another thread, but no luck so far. If we link the two threads together, we might be able to see few possible answers

Newbie

Posts

Joined
Wed Apr 13, 2011 11:36 am

Post by jpierre » Tue May 17, 2011 2:11 pm

i have the same problem too.
i'm working on ms xp sp3.
Please, help us(

Newbie

Posts

Joined
Tue May 17, 2011 2:08 pm

Post by themeburn.com » Mon May 30, 2011 4:39 am

i have the same problem too.
i'm working on ms xp sp3.
Please, help us(

Newbie

Posts

Joined
Mon May 30, 2011 4:37 am

Post by Daniel » Mon May 30, 2011 11:29 pm

what anti viruses are you using?

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Mon May 30, 2011 11:32 pm

this is the escript I'm using to upload files:

http://valums.com/ajax-upload/

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by kellytay » Thu Jul 07, 2011 9:06 pm

I also have same problem Can't upload files (Warning! Please select a file). ??? ??? ???

New member

Posts

Joined
Mon Jan 17, 2011 9:40 pm

Post by opencart-templates » Fri Sep 02, 2011 7:17 pm

Same problem here using Firefox, I have had to separate each download. It appears that the file size is actually limited to around 2Mb.

Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce


User avatar
Active Member

Posts

Joined
Mon May 16, 2011 7:24 pm
Location - UK

Post by inblues » Wed Nov 02, 2011 11:15 pm

Hi, anyone found solution for this issue? I'm facing the same issue.
My apps is running is windows server 2003, IIS 6, PHP Version 5.3.8, Opencart version 1.9.4.3
Any suggestions?

Newbie

Posts

Joined
Fri Mar 25, 2011 1:09 am

Post by inblues » Thu Nov 03, 2011 1:34 am

Problem solve. I'm able to solve the problem by edit upload_tmp_dir in php.ini.
for more details, please refer to http://dotnetfish.blogspot.com/2011/11/ ... ncart.html

Newbie

Posts

Joined
Fri Mar 25, 2011 1:09 am

Post by eoistes » Thu Nov 24, 2011 6:45 am

I'm facing this as well using a mac w/firefox. The OC version is 1.5.1.3. I saw this
opencart-templates wrote:Same problem here using Firefox, I have had to separate each download. It appears that the file size is actually limited to around 2Mb.
and experimented by uploading a file under 2mb to see if that would help. That file was around 550Kb. While I wasn't successful at uploading the file, I did get a clear message this time that the file size was too big and that my upload needed to be under 300K. I uploaded a 30K file and was successful.

It appears that when image manager gives the "Warning: Please Select A File!", what's really going on is that the file is way too big for it to handle. If its over the limit but not too far over the limit, it'll complain accurately about what's going on.

Newbie

Posts

Joined
Tue Nov 22, 2011 1:49 pm

Post by hexodis » Tue Dec 06, 2011 5:12 am

I am still having this issue, I just tried uploading a file that is only 75kb. As I understand it, that shouldn't be a problem.
The workaround I have been using is just to manually upload the files via ftp but it doesn't make sense that it won't work from within the administrator portion of the site.

I simply can't tell my clients to use ftp to get the desired pictures uploaded.

Any help would be greatly appreciated

current version: 1.5.1

Newbie

Posts

Joined
Tue Dec 07, 2010 2:55 am

Post by saifulbd110 » Thu Feb 07, 2013 5:15 am

I also have same problem Can't upload files (Warning! Please select a file). ??? ???
my opencart Version 1.4.9.3, Image folder permission 777, and my php.ini code is

Code: Select all

register_globals = Off
magic_quotes_gpc = Off
memory_limit = 512M
max_execution_time = 18000
upload_max_filesize = 1024M
safe_mode = Off
mysql.connect_timeout = 18000
session.use_cookies = On
session.use_trans_sid = 1
session.save_path = /tmp
session.gc_maxlifetime = 90000000
allow_url_fopen = On
post_max_size = 1024M
display_errors = Off
upload_tmp_dir = /temp

Image manager is not work properly. (Warning! Please select a file).
Please Help me How to solve image manager issue.

Regards
Md Saiful Islam
Web development
:) :good:
Tuli Host Hash Encoder Site Down Checker


User avatar
Newbie

Posts

Joined
Thu Jan 10, 2013 7:27 am
Location - Bangladesh

Post by gary.power » Sun May 26, 2013 7:30 pm

changes for image size upload and php.ini

incresae size of MAX_UPLOAD IMAGE

2m to 12m ?

incresae size of max post size from 2m to 12m

changes to codew at resize json error found on web
and changes to max upload from 300 kb to 10 mb


OpenCart’s default image upload size is 300KB and that is simply too small for clients that don’t have the knowledge to resize their images before uploading them. Although uploading digital camera images does use more bandwidth, sometimes it can not be avoided. To adjust the image upload size make the following changes around line 446 of admin/controller/common/filemanager.php:

if ($this->request->files['image']['size'] > 10485760) {
$json['error'] = $this->language->get('error_file_size');
}
In this case we have increased the upload size limit to 10MB, also make sure that your php configuration will allow file uploads and posts of this size.

Now you have these big images uploaded, but sometimes GD can run out of memory trying to resize these large images. You can solve this by using imagemagick, if available. So what we’re going to do is resize all images larger than 1000×1000 down to 1000×1000. Make the following changes around line 490 of admin/controller/common/filemanager.php:

if (!isset($json['error'])) {
if(substr($this->request->files['image']['type'],0,5)=='image'){
$imageinfo = getimagesize($this->request->files['image']['tmp_name']);
if($imageinfo[0]>1000 || $imageinfo[1]>1000){
exec('convert -colorspace RGB "'.$this->request->files['image']['tmp_name'].'" -resize 1000x1000 "'.$this->request->files['image']['tmp_name'].'"');
}
}
if (@move_uploaded_file($this->request->files['image']['tmp_name'], $directory . '/' . basename($this->request->files['image']['name']))) {
$json['success'] = $this->language->get('text_uploaded');
} else {
$json['error'] = $this->language->get('error_uploaded');
}
}
That’s it, your image upload file size limit has been lifted and memory usage issues have been dealt with!

Newbie

Posts

Joined
Sat May 25, 2013 12:24 am

Post by gary.power » Sun May 26, 2013 7:33 pm

Sorry forgot to add this link to help with increasing the size limits in php.ini

this should explain that

http://www.radinks.com/upload/config.php

Newbie

Posts

Joined
Sat May 25, 2013 12:24 am
Who is online

Users browsing this forum: Semrush [Bot] and 6 guests