trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Upload image conflict #847

Open nicktan147 opened 8 years ago

nicktan147 commented 8 years ago

When I tried to upload image using form, I received no image after submission.

trentrichardson commented 8 years ago

Sounds to me that your form doesn't have the enctype attribute set to "multipart/form-data":

<form action="demo_post_enctype.asp" method="post" enctype="multipart/form-data">
  First name: <input type="text" name="fname"><br>
  Last name: <input type="text" name="lname"><br>
  <input type="submit" value="Submit">
</form>
nicktan147 commented 8 years ago

I will update you my code tomorrow. I did put the form type you mentioned and it did submit but when it goes to my php storing part it just won't work. If I remove the datetime picker add on js it works fine. On Nov 25, 2015 8:44 PM, "Trent Richardson" notifications@github.com wrote:

Sounds to me that your form doesn't have the enctype attribute set to "multipart/form-data":

First name:
Last name:

— Reply to this email directly or view it on GitHub https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/847#issuecomment-159597173 .