Skip to content

Commit

Permalink
Remove 406 handler from upload
Browse files Browse the repository at this point in the history
The 406 issue is separate to the upload problem, which has been resolved
by changing the timing of the list lookup after upload.
  • Loading branch information
NSeydoux committed Sep 24, 2024
1 parent 89b8369 commit c73676d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions components/PopupMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ const PopupMenu: React.FC<PopupMenuProps> = ({
mutationFn: postFile,
onSuccess: onUploadSuccess,
onError: (error) => {
if (
error &&
hasProblemDetails(error) &&
error.problemDetails.status === NOT_ACCEPTABLE_STATUS
) {
// This is the expected behavior of the Solid server. The file has already been uploaded to Solid, even though the server returned a 406 error.
onUploadSuccess();
return;
}
console.debug("A non-HTTP error occurred.", error);
showErrorMsg("Unable to save the file into your Wallet.");
},
Expand Down

0 comments on commit c73676d

Please sign in to comment.