-
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 upload with form data. #1
Comments
Currently no, but it is pretty straightforward to add that in, I am gonna update the Demo and example with that either tomorrow or the day after. In case you are using Java for the server side, I will also post the server side code in the demo which is deployed on google appengine. |
Thank you for your help. It would be very helpful if you can show multiple files with multiple inputs upload programmatically from clicking a submit button. I hope that is possible with your directive. On Aug 8, 2013, at 10:06 PM, danialfarid notifications@github.com wrote:
|
Since FileAPI submit multiple files one by one to the server it is not possible to submit multiple files and inputs together. If you have multiple files you can call uploadFile in a loop for each of them. You can send data along with each file to the server in the next version. |
Ok I have updated the code and demo with the new version 0.1.1 which allows sending data along with the file. |
Thank you, I will try it out. On Aug 13, 2013, at 5:03 PM, danialfarid notifications@github.com wrote:
|
When I try to upload a form with a file and data using:
I get the data object as a string "[object Object]". |
What version? do you get 'js' as string or 'data' as string? |
version: 1.1.2 |
It is fixed in 1.1.4 and later. Try the latest version or 1.1.4. |
👍 Please, link me the commit to fix that. I'd like to understand the problem. |
https://github.com/danialfarid/angular-file-upload/blob/1.1.4/angular-file-upload.js#L20 |
Hi,
Is it possible to send other form data like input strings along with the file upload? Can I just gather the information into the scope and manually send it with the $http.uploadFile function? Thank you for your help.
The text was updated successfully, but these errors were encountered: