-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue dropzone send json data format is trouble #152
Comments
Hi @niusmake So is the server receiving the data variable but you're just not sure what to do with it? If that's the case you probably need to decode your json string on the server using something like php's json_decode function. If that's not it you might need to provide more information... |
Thank your reply~! @rowanwins I has try json_decode , but is error message..
I think put json data into html form input is not work.. like this
|
I think the approach you are using in the browser is fine, I think you are just doing something wrong in your server php. Can you post a snippet from your php as to what you're doing? |
@rowanwins
|
so the error you were getting said json_decode expects an string but you passed an array, are you sure you passed in a string? Perhaps trying something like a gettype() to check what
It may be that you need to do something like
|
@rowanwins |
I use vdropzone-sending ,and use JSON.stringify, send to json data to php
but data become string, then php is can not load..
it is this string json
How can I do? Please tell me. Thanks
The text was updated successfully, but these errors were encountered: