-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use Webdav PUT for uploads #1283
Conversation
|
Ok, the name of the PR is misleading since it's implementing webdav POST, not using webdav PUT From what I understand from reading the spec this is not actually implementing RFC5995 as it says it is, but instead doing something that somewhat looks like the spec on the surface. according to the RFC every collection has a (possibly) separate endpoint where it allows POST requests to create new files in the collection, this endpoint url is static for the collection and does not contain any filename suggestion for the created file, if the client wants to suggest a filename it can use the As it's currently implemented it uses a "magic path" Imo it would be better if we properly follow the rfc |
@icewind1991 so close this and you fix it according to the RFC ;)? |
@icewind1991 I'd either like to have this fixed or merged. 🙈 |
Blocks #1511 |
Needs rebase |
@icewind1991 @rullzer How to proceed here? stalled PRs doesn't help neither. |
Rebase and just merge and enhance latter? Keeps the diff smaller 🙈 |
Will rebase. |
I'm fine with this as long as it has some documentation about how the magic path works (and doesn't suggest it's RFC5995) |
95e3183
to
34a61bd
Compare
I rebased this and want to get this in, because it blocks soo many other downstream PRs. |
|
34a61bd
to
2724b60
Compare
Files_drop is kind of working again. @icewind1991 do you agree with 35f9d3c Else it is not possible to upload via webdav with only create permissions since rename is not allowed. |
Some tests are failing |
2724b60
to
76c133c
Compare
- uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Not needed any more in IE >= 11 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Hacked around Blueimp's jquery.fileupload to make it work with our new chunking API. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
If we move a file from the temp part file to the original file we don't need update permissions. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
76c133c
to
c8a13f6
Compare
Current coverage is 57.35% (diff: 36.36%)@@ master #1283 diff @@
==========================================
Files 1075 1075
Lines 61319 61975 +656
Methods 6851 6960 +109
Messages 0 0
Branches 0 0
==========================================
+ Hits 35124 35546 +422
- Misses 26195 26429 +234
Partials 0 0
|
Ok files_drop works here. CC: @MorrisJobke @icewind1991 @nickvergessen @LukasReschke @blizzz |
Works 👍 Tested in IE, Safari and Chrome |
@LukasReschke @nickvergessen we should get this in as fast as possible - other downstreams are depending on this |
LGTM |
See owncloud/core#21237
Please test carefully:
CC: @nickvergessen @MorrisJobke @LukasReschke @blizzz @icewind1991 @schiessle