-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add uploading support for registered users #574
Conversation
By analyzing the blame information on this pull request, we identified @jancborchardt and @PVince81 to be potential reviewers |
a45723c
to
a16e4ff
Compare
Working
great 👍 ...everything seems to be working fine I will try some more test and take a look at the code.. |
@oparoz Everything seems to be working! 👍
But I wanted to clarify one thing, if we try to upload a folder and even if there is one empty file, the entire folder doesn't get uploaded. I think it should not be like this. It think we should try to atleast upload the non empty files and folders. Secondly, the error message that is displayed in the above case should be changed. Currently, the error message is 'Error uploading file "Untitled Document": Unable to upload Untitled Document as it is a directory or has 0 bytes'. Since, directory upload is now possible, we should not print in the error message that the reason of not uploading is that it is a directory. I am attaching a screenshot of the following. One more thing we can do is automatically hide the error message after a certain time instead of keeping it till someone clicks on 'x'. |
a16e4ff
to
6760153
Compare
@oparoz Now public gallery is also working fine! 👍 |
@tahaalibra - Ah, yes. I've changed approach at the 11th hour and failed to verify that it still worked on the public side. That side doesn't support uploading yet. It's now fixed. @imjalpreet - All the problems you've described should happen on the Files side as well and some reports have probably already been opened in |
@oparoz Yeah Sure. I will have a look in core. |
@oparoz now working on public as well as logged in !!!!! |
Based on the files + button Allows uploading multiple files at once
6760153
to
dfcb16d
Compare
Add uploading support for registered users
Awesome work @oparoz ! |
Fixes #25. It replaces #485 and #520 .
Featuring
Todo
Test plan
Base
Additional tests
Tech review
files
is loaded as-is. A special file has been created to replace FileList and Files methods called by those scriptsnewfilemenu.js
has been imported and modified to make it work with Gallery. We don't need more than the upload entryOC.Upload._isReceivedSharedFile
is replaced with a method which does the lookup in the cache instead of in the HTMLNote: Ideally, we should switch to webdav once uploading is supported and re-usable components for the file dialogue move outside of
files
.@karlitschek @jancborchardt @DeepDiver1975 @LukasReschke @PVince81 @MorrisJobke @jospoortvliet @setnes @deMattin @arkascha @elpraga @sualko @Bugsbane @mmattel @tahaalibra @viraj96 @imjalpreet @mbtamuli @rahulgoyal030