-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Creating a file with some fields throws an error #160
Comments
Can you check the Network tab of your web console? To see what the server returns to the request. |
The way it works:
|
It gives an error 409 (conflict) in network tab and than 401 (unauthorized). But without fields i can save file and also i can update manually ( i have full permissions ). |
Do you see the request that is done using the Is there a conflict because the file is checked out? Or something similar? |
It's hard to say what's going on... You should try with one file at a time to see if it works, and clear the network tab before processing, then click on each request that is sent to verify the content of the request and the response from the server. |
Thank you for the support. I will try to make an update on my own for each file once files are saved without fileds. Can you please tell me, where/how can i pass overwrite=false for the files creation ? |
It's actually a good question. It's hardcoded and not a parameter as of today... It's something I could add in the next release. I can try to release a new version later today if it helps... |
Yes it would help a lot. Thank you for your fast response and good help. |
Currently my sharepoint is running locally using proxy, and i think maybe that is why the request (updating) which comes after saving file doesnt work because base url is not provided for the second request. |
The new version (v6.1.3) has just been published: changelog There is now an option |
In case when i create a new file without fields, everything works nice. But when i provide some fileds ( even when i pass empty fileds object ) request throws an error. I will provide image bellow.
My code, which is identical to yours on https://aymkdn.github.io/SharepointPlus/files.html#createFile
The text was updated successfully, but these errors were encountered: