Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@richarda23 richarda23 force-pushed the native-file-upload-#16 branch from e5d5261 to d4befed Compare November 27, 2022 10:38
@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.

3 participants