-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
http uploads #107
Comments
Thanks for looking into this! I've created a test posting both "normal" You have also made me realize that I'm not allowing anyone to modify the formidable options! https://github.com/felixge/node-formidable Changing the upload location and max file-size is pretty important. This commit fixes that up evantahler@18080f1 uploader.js (action)exports.action = {
name: 'uploader',
description: 'uploader',
inputs: {
required: [], optional: ['file1', 'file2', 'key1', 'key2']
},
outputExample: null,
run: function(api, connection, next){
console.log("\r\n\r\n")
console.log(connection.params);
console.log("\r\n\r\n")
next(connection, true);
}
}; uploader.html (public)<html>
<head></head>
<body>
<form method="post" enctype="multipart/form-data" action="http://localhost:8080/api/uploader">
<input type="file" name="file1" />
<input type="file" name="file2" />
<br><br>
<input type='text' name="key1" />
<input type='text' name="key2" />
<br><br>
<input type="submit" value="send" />
</form>
</body>
</html> example output
|
I suddenly realized that you meant a litteral Do you happen to know why the main branch of formidable doesn't have @dvv's patch you referenced? It's quite old at this point. However, I also only see 1 of my n files uploaded via this method. I don't want to require a non-NPM'd module in actionHero, and I would also prefer not to need to patch a dependency either. We are using the current version of formidable... |
And... it seems like it is still an open issue :/ node-formidable/formidable#33, and has been for some time. I'm going to close this issue here (as this seems to be philosophical war going on with the formidable community) and call this a I'll be sure to update actionHero's dependancies as soon as that issue gets updated, and you guide above is great for anyone who feels gutsy and wants to hack on these modules manually. |
Hello,
I tried to make a multiple file upload and i got :
i made this little fix - is ugly but it works for me:
webServer.js
this works only with 1 defined multiple upload field :) i know is not an elegant solution, but someone may have the same problem like me
The text was updated successfully, but these errors were encountered: