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
fix js pythonisme #4425
fix js pythonisme #4425
Conversation
@minrk upload should be a |
Yes, Probably. |
Yes, upload with name is a PUT. |
@@ -71,7 +71,7 @@ var IPython = (function (IPython) { | |||
reader.readAsText(f); | |||
var name_and_ext = utils.splitext(f.name); | |||
var nbname = name_and_ext[0]; | |||
var file_ext = name_and_ext[-1]; | |||
var file_ext = name_and_ext[name_and_ext.length-1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should just be 1
, no need for length - 1
pythonnism + PUT instead of POST
Updated, still I think put should refuse to PUT is something is already there right ? |
Should it? I don't think so, that's not what the spec describes. |
👍 to merge as-is, since it's a relatively important feature that's just broken in master. We can work out the overwrite behavior in the future. |
Yes, re-read the reference rest api, and put replace if already existing. |
Fix impossibility to upload notebooks.
Fix impossibility to upload notebooks.
But POST request is now wrong.
Investigating.