tags:

views:

24

answers:

1

when i try to upload two files in the form, it doesn't happen!!! here is my code

<input type="file" name="video" />

<input type="file" name="picture" />

<input type="submit"  class="input" value="Save" />

but when i post only one file, that's ok!!! can somebody help me, pleaseee;)

A: 

Seeing that this question has not that much details, I'll assume that this might be your problem.

Make sure your form has enctype="multipart/form-data" as attribute and method must be POST

e.g.

<form name="fileUploadForm" action="/toMyAction" enctype="multipart/form-data" method="POST">
  <input type="file" name="video" />
  <input type="file" name="picture" />
  <input type="submit"  class="input" value="Save" />
</form>
The Elite Gentleman
hmmm, i've done it already:(((maybe problem in my local server!!! i tried it on local server!!!
Syom
What's the exact problem you're having? Your question is not at all clear.
jackbot
The the server is a problem. Because I've used multiple file upload like this one and has worked beautifully.
The Elite Gentleman