-
Notifications
You must be signed in to change notification settings - Fork 100
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
SW360 REST-API "Upload attachment to project" does not allow file upload #1616
Comments
I will fix this issue. Please assign it to me. |
Hi @yyosioka, your file path is correct, attachmentContentId is auto generated, you can remove it in request. |
Thank you for your comment attachmentContentId will be removed. responseHTTP1.1 500 {"timestamp":"2022-08-26T08:57:48.613736Z","status":500,"error":"Internal Server Error","message"null} |
OK. |
@hoangnt2 I have changed the name of the file to be attached but the same error is returned. |
@yyosioka Can you give me your http request and log file of sw360? |
Thank you for your response. |
Close. |
feat(UI): adding additional links to sw360 footer. Closes eclipse-sw360#1616 See merge request sw360/sw360portal!297
Description
SW360 REST-API "Upload attachment to project" does not allow file upload.
Please let me know if I may have made a mistake in the REST-API arguments.
I would like to know how to specify the following arguments.
file :File path of the attachment
If I want to specify "test.txt" in the current folder, is the following correct?
'file=@./test.txt'
Please let me know if there are any restrictions on files or folders that store attachments.
attachmentContentId:Id of attachment info
What ID should I specify for this?
Do I need to pre-number it somewhere?
Versions
Version:15.1.0
The text was updated successfully, but these errors were encountered: