Skip to content
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

Question about uploading a file. #1

Closed
JordanMajd opened this issue Jun 28, 2012 · 3 comments
Closed

Question about uploading a file. #1

JordanMajd opened this issue Jun 28, 2012 · 3 comments

Comments

@JordanMajd
Copy link

Whenever you upload a file via nanoHTTPD a name is assigned to it, by default this is a string of random numbers, but you can change it to whatever you want in the source code. However, I want the file to maintain its original filename, I don't know how to get this data from the HTML POST method into a string. Any advice is welcomed.

@gseguin
Copy link
Owner

gseguin commented Jun 28, 2012

@lordbunson, the purpose of nanoHTTPd is mostly to serve a directory not implement a full on HTTP server. Feel free to submit a pull request or fork it.

@JordanMajd
Copy link
Author

Hey, thanks for the advice. I dropped the project I was working on because of some changes added with Android 3.2. However, back then I was a terrible programmer, while still not great I am finally competent. I might look into forking it and adding an upload function where you have the ability to maintain the original file name. Thanks for the suggestion. While I wouldn't expect anyone to use it, it will be a fantastic learning experience.

@gseguin
Copy link
Owner

gseguin commented Mar 15, 2013

Closed #1

@gseguin gseguin closed this as completed Mar 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants