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

Native file upload #16 #23

Merged
merged 5 commits into from
Nov 27, 2022
Merged

Native file upload #16 #23

merged 5 commits into from
Nov 27, 2022

Conversation

otter606
Copy link
Contributor

@AleixMT here is a PR of intended changes.
It supports upload of file using native API, not Sword.
Please have a look at the new tests in DatasetOperationsTest such as uploadFileToDataSetWithNativeApiBytes to see how to use it.
Any comments welcome

};
return getDatasetFileList(metadata, dsIdentifier, resource);
}
// TODO stream read twice???
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by read stream twice? Do you have any problem? We can discuss it if you want.

@AleixMT
Copy link
Contributor

AleixMT commented Nov 26, 2022

Generally, I have taken a look into the code and it looks promising :D :D As soon as you do the merge I will try out the new functionalities. I will post how it goes if you want. Thank you!

successful post of file
add overloaded method to add input stream

fix tests

Update src/main/java/com/researchspace/dataverse/entities/ObjectOrStringMessageDeserializer.java

docs: javadocs

Update src/main/java/com/researchspace/dataverse/http/DataverseOperationsImplV1.java

remove obsolete comment
@otter606 otter606 merged commit 22da346 into master Nov 27, 2022
@otter606 otter606 deleted the native-file-upload-#16 branch November 27, 2022 10:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants