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

item_upload_create should support an arg for "title" #49

Open
jordansread opened this issue Apr 3, 2015 · 6 comments
Open

item_upload_create should support an arg for "title" #49

jordansread opened this issue Apr 3, 2015 · 6 comments

Comments

@jordansread
Copy link
Contributor

right now it creates the item with the same name as the file.

@lawinslow
Copy link
Contributor

Note, this needs to be handled by including JSON as part of the body of the request, as per (this documentation)[https://my.usgs.gov/confluence/display/sciencebase/Uploading+Files+to+ScienceBase]. But before that will work, #39 needs to be figured out.

@jordansread
Copy link
Contributor Author

gotcha. ok, that makes sense.

@sckott
Copy link
Contributor

sckott commented Sep 9, 2015

Hmm, played around with this a bit - can't get a title sent through the query either in query args or in the body...

@lawinslow
Copy link
Contributor

Did you see this in the docs?

The parts consist of files, each of which is named "file" and a sbJSON part which is named item. With these parts you can upload as many files as you wish as well as creating (or updating) with sbJSON.

Did you try creating a JSON file with the title parameter in it and include it as part of the upload?

@sckott
Copy link
Contributor

sckott commented Sep 10, 2015

hmm, maybe not, can try

@lawinslow
Copy link
Contributor

This issue is also related to #39. Title needs to be provided as part of a JSON file written out and included in the upload. This support has been challenging for the issues laid out in #39.

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

3 participants