To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/MN2PR07MB7343CC1CD1395266CFF5CB46BF479%40MN2PR07MB7343.namprd07.prod.outlook.com.
Ah – sorry. At least a partial answer: 5.0 was prior to the introduction of multipart uploads in 5.1 and so the /uploadurls endpoint indeed doesn’t exist. However there is a (now deprecated but still existing) /uploadsid endpoint (which should work up to your s3 server’s partSize limit (configurable on minIO and maxed at 5GB for AWS)). The one difference is that uploadsid has no size param, so just:
curl -H "X-Dataverse-key:$API_TOKEN" "$SERVER_URL/api/datasets/:persistentId/uploadsid?persistentId=$PERSISTENT_IDENTIFIER "
The UI should be using that older method internally in 5.0, so that doesn’t explain why the UI upload didn’t work. It would be useful to confirm in the browser console/network pane that the error is actually in that first call back to Dataverse and not, for example, a separate issue when the presigned URL gets used with the S3 store (which could be CORS, etc.)
FWIW: I think you can do a complete API test if you just use the /uploadsid endpoint as the first step. That gives you a single signed URL which you can then use to upload to S3 (same as the single part case in the 5.4 docs) and then finish with the final call to add the file to your dataset (again the same as in the 5.4 docs).
Hopefully either checking in the console for UI errors or trying the /uploadsid endpoint and subsequent API calls per the docs will uncover some other issue that is preventing this form working.
-- Jim
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/CAAyRWZ6Mu-3Ss%2B9jERFdo5NhxxNYxPNbqNsaNAPbHo05NUnAYw%40mail.gmail.com.