-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Sending file to Spring Controller #342
Comments
For Spring Controller you can use $upload.upload() with this syntax:
|
That worked. Thank you for the help I really appreciate it. |
Actually after some more testing I tried to upload this to our server and testing on the server did not work. It tells me bad request. I am making other calls to the same Spring Controller and all of them are working. and here is my Spring Controller Code.
.... |
Is there any more information on the Bad Request error? |
You can try to get a regular file form with submit button plain html to work with Spring. Once you have that working then it should work with the plugin as well. There should be plenty of tutorial on regular form submit file upload with Spring. |
I got a regular form to work on my localhost but once I push it to my test server I keep getting a bad request error. "There was an unexpected error (type=Bad Request, status=400). |
Well getting the regular form working on your server would be the first step and is not related to this plugin, You can ask in the Spring forum or on stackoverflow. |
Hi Danial,
I am trying to use your file uploader to send a file to a Spring Controller. I am using the upload.http() from issue #88 but that is not working for me. I think I may just be getting the type wrong on what the controller expects.
The text was updated successfully, but these errors were encountered: