sadik7266 / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Image upload does not work as it should #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. Create a file input field, add 'multi-upload' as the class and
'images[]' as the name
2. Use the input field to select an image and redirect to upload.php page
via the action parameter on the form field
3. I tried to echo out the images array on the upload.php page using echo
$_FILES['images[0]']['size']; but nothing appears so the image(s) never
uploads.
4. If I remove the 'multi-upload' class from the input field, it works fine
and using the echo i mentioned in #3, echoes out the size of the uploaded
image. 

What is the expected output? What do you see instead?

What version of the plugin/jQuery are you using?
PLUGIN VERSION:
JQUERY VERSION: I am using v.1.4.6

On what browser(s) or operating system?
BROWSER(S): windows xp, windows vista

Please provide a link to where the problem can be observed:
URL:
http://www.idea-palette.com/port/vacation_showcase/admin/mailinglist/index.php?a
ction=create-mail

Original issue reported on code.google.com by zeckd...@gmail.com on 14 Nov 2009 at 11:43

GoogleCodeExporter commented 8 years ago
I need to make a correction to the bug reported.

1. I am targeting the input field using the id 'multi-upload' using the 
following
lines of jquery:

$('#multi_upload').MultiFile({ 
  STRING: {
   file: '<em title="Click to remove"
onclick="$(this).parent().prev().click()">$file</em>',
   remove: '<img src="/@/bin.gif" height="16" width="16" alt="x"/>'
  }
 }); 

Also, the multi-upload itself is working on the client side, but it never 
uploads.
When I remove the id to test if the single file upload works, you can see the 
few
moments that it takes to upload the file as well as the printed array on the
upload.php page that we are redirected to upon clicking the submit button.

I am really confused why this is happening. I am following all the directions.

Original comment by zeckd...@gmail.com on 15 Nov 2009 at 9:38

GoogleCodeExporter commented 8 years ago
I think you should use
  $_FILES['images']['size'][0];

not 

  $_FILES['images[0]']['size'];

Original comment by witold.b...@gmail.com on 26 Jun 2010 at 12:05

GoogleCodeExporter commented 8 years ago
The project has been dormant for over a year and many of the support requests 
have been resolved and/or are invalid. So we're going to archive them all, 
pending review.

If you're still having a problem with the plugin, please visit the project page 
and re-open the issue. We do apologize for any inconvenience this may cause, 
but please bear with us...  we'll be making improvements to the plugin and its 
documentation over the coming weeks.

Stay tuned; and thanks for your support!

The Fyneworks Team
http://twitter.com/fyneworks

Original comment by fyneworks on 26 Jan 2012 at 1:37