You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a run into an issue with uploading a file to canvas that has been recently deleted from the files section of a course.
In short, if I delete a file from a course, then upload a new file with the same name, the new version of the file is given the same remote id as the original file that was deleted. If I then try to access the newly uploaded file by its remote id I get a standard error:
"canvasapi.exceptions.ResourceDoesNotExist: Not Found"
and I can see that the file has not been uploaded.
I am not sure if I am violating a design pattern of the canvasapi so I would appreciate any help on the matter.
Steps to reproduce:
Delete file foo.pdf from a course (this can also be done from a browser)
Upload a new file called foo.pdf and save its remote id
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a run into an issue with uploading a file to canvas that has been recently deleted from the files section of a course.
In short, if I delete a file from a course, then upload a new file with the same name, the new version of the file is given the same remote id as the original file that was deleted. If I then try to access the newly uploaded file by its remote id I get a standard error:
"canvasapi.exceptions.ResourceDoesNotExist: Not Found"
and I can see that the file has not been uploaded.
I am not sure if I am violating a design pattern of the canvasapi so I would appreciate any help on the matter.
Steps to reproduce:
Sample code
Beta Was this translation helpful? Give feedback.
All reactions