andyvr / picEdit

An attempt to create a simple front-end image editor jQuery plugin that would replace a file-upload input box in a HTML form.
https://andyvr.github.io/picEdit/
MIT License
138 stars 57 forks source link

Value not pass on server #15

Open Gajendrasinh opened 9 years ago

Gajendrasinh commented 9 years ago

Hi

i am using picEdit - Perform image rotations, cropping, resizing and pen tool when i m try to was other input at at time save is not pass in server only image is pass.

i am add 3 input fied that vale is not pass in server

simonpapworth6742 commented 9 years ago

I use PicEdit in a kendo window with an additional textarea and two hidden input all works well, even after rotation, resize and drawing. Tested in Chrome 40

I have named my form, and only submit that form.

Try using chrome development tools to look at the request header of your post, and establish that the browser does actually send your input fields, I suspect it does.

You may also need to access the second file in the list of files, as it contains the edited picture, not the original picture.

I added code to empty the original file input box to speed up data transmission.

joaoprp commented 9 years ago

In my case it isn't. I'm using picEdit in my laravel app and there's only one file input being sent throught the XHR request headers.

joaoprp commented 9 years ago

a thing I realized was the HTML tags. Any form closing in the wrong tag subset might make the initial input be inside the form and the second one outside, not being considered.

jaysudo commented 9 years ago

Are you using Ajax to submit the form?

Gajendrasinh commented 9 years ago

no

Best Regards, Gajendrasinh Zala

On Tue, Mar 3, 2015 at 6:50 AM, jaysudo notifications@github.com wrote:

Are you using Ajax to submit the form?

— Reply to this email directly or view it on GitHub https://github.com/andyvr/picEdit/issues/15#issuecomment-76868039.