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

Troubleshooting file upload issue #2010

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

hectorcorrea
Copy link
Member

Closes #2009

@@ -63,7 +63,8 @@ export default class WorkEditFileUpload {
headers: { 'X-CSRF-Token': tokenContent },
bundle: true, // upload all selected files at once
formData: true, // required when bundle: true
getResponseData() {
getResponseData(data) {
console.log(data);
Copy link
Member Author

Choose a reason for hiding this comment

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

This shows the error:

<html>
<head><title>Request Rejected</title></head>
<body>The requested URL was rejected. Please consult with your administrator.<br>
<br>
Your support ID is: 12465273342320109191<br>
<br>
<a href='javascript:history.back();'>[Go Back]</a>
</body>
</html>

Wish whomever is returning it will also return an HTTP Status Code that is not 200

Copy link
Member Author

Choose a reason for hiding this comment

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

data is an empty string for a successful upload.

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.

Researcher unable to submit to PDC
2 participants