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

File Upload #16

Closed
bakercp opened this issue Jun 5, 2014 · 3 comments
Closed

File Upload #16

bakercp opened this issue Jun 5, 2014 · 3 comments
Milestone

Comments

@bakercp
Copy link
Member

bakercp commented Jun 5, 2014

  • ofxHTTP already supports file upload.
  • We need file management for users to upload files to their data folder.
@bakercp bakercp added this to the v0.9.0 milestone Jun 5, 2014
@brannondorsey brannondorsey modified the milestones: v0.9.0, v0.5.0, v0.4.0 Aug 9, 2014
@brannondorsey
Copy link
Member

Im having trouble figuring out how to add a file upload route with ofxHTTP. I remember you had it working with a very old version of ofSketch but I haven't been able to find the server code to handle a request to the /upload route. I also didn't see any ofxHTTP examples of this in action. Could you post some example code to get me pointed in the right direction?

@bakercp
Copy link
Member Author

bakercp commented Aug 11, 2014

An upload (aka "post") route is already configured in our server at the root node "/". It is accessed much like this:

https://github.com/bakercp/ofxHTTP/tree/master/example_basic_post_server

You can access its settings in the ofx::HTTP::BasicJSONRPCServerSettings object.

You should find callbacks for post data / progress, etc events in the App.h/App.cpp.

brannondorsey added a commit to brannondorsey/ofSketch that referenced this issue Aug 13, 2014
@bakercp bakercp changed the title File Upload / Management Support File Upload Aug 13, 2014
@bakercp
Copy link
Member Author

bakercp commented Aug 13, 2014

Removed the requirement for file management for the time being. This issue is closed.

@bakercp bakercp closed this as completed Aug 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants