-
Notifications
You must be signed in to change notification settings - Fork 20
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
Upload to multiple locations (new Attempt) #73
Upload to multiple locations (new Attempt) #73
Conversation
... code from NastuzziSamy !!!
Theres a lot to do because especially app.js and the different controllers aren't compatible to Flowupload master |
TODO:
|
I integrated everything from NastuzziSamy into the current version of flowupload. I don't get why adding files and folders should be in the sidebar. (Is it possible to implement them like they were before with multiple upload folders ?) There are a few other UI changes i would like to make. And another question is: Why are the locations saved server side ? Wouldn't it be enough to handle them client side ? |
I am not sure either, the UI design with the old PR is somewhat problematic and we should use the official folder selection UI and other components to make it more coherent with the rest of Nextcloud anyway. Do you have a screenshot/list of changes to the UI you want to make?
Probably yes, but it might be convenient for users to reuse locations used in the past. |
I changed the add location design: before:now:Now its more in line with the nextcloud design (see here) |
I will add them to the TODO List |
I agree |
and made the sidebar entries non collapsible
…lowupload into multiple-locations
Nice work! About the folder picker I thought about this one (used in the Collabora app): The code can be found here: |
That looks really nice. So how should we do the UI ? |
I tested you zipped version, it works pretty well. UI wise, do we need the settings menu in the bottom left corner at the moment? It is pretty empty. Maybe this feature could be set there in the future: #75 |
Seems like I was a bit too fast assuming everything works. I tried to upload to an external storage and it immediately shows "error" after finishing the upload. The file is never created in the folder either showing these messages:
|
Well i kind of knew that. Many external storages don't implement the functions we need to assemble the chunks. We need a fallback method for assembling the chunks, but that will not be easy. I will try it in the next few days, but i can't guarantee that it will work with every External Storage. |
Well, if that is the case, then maybe whitelisting might be an option. Do you know which ones work? I tested it with SFTP which seems not to work correctly at the moment. |
Everyone that implements the fopen function should work. But that's not many so we need to find another way of assembling the chunks, if fopen isn't implemented. fopen is very efficient so we should use it whenever we can |
We should at least put a warning somewhere for now, otherwise people will open issues again about this even if we know that not all external storage types will work at the moment. Whitelisting would still be a better idea to limit functionality to working storage types. |
Do you think we can merge it already? The PR still has the "draft" status. |
I updated the README to make it very clear that External Storages may not work yet. |
I added Strings to the Project that will need to be translated, but Transifex will take care of that. We don't have to exclude /js/ with l10nignore because no webpack built code will be in the repository (only in releases). |
I didn't spot any problems in the code. Are we ready to merge ? |
Codacity doesn't like my code (mostly because mixed " and '. And some of these warnings are totally useless) but i will clean that up later. Our priority right now should be supporting Nextcloud 19, wich will be released very soon. |
I am not sure if Codacy is that useful for this project at all, but in the future Dependabot is useful probably for keeping our dependencies current. We could make a release for Nextcloud 19 and 18 only for now so older releases can still use the older legacy version of Flowupload that works still on those Nextcloud releases. Translations will be done by the awesome translators at Transiflex so they should be pushed here within a few days, if some strings are left that could be solved by a minor release. The only thing left is the release script in the .ci folder, I am not sure if it is needed anymore. |
You could do the release manually or we have to update the script to run webpack before the release |
Its done! I also enabled Dependabot because we already have a security vulnerability in our dependencies (minimist). |
Flowupload 1.0 release is done: https://apps.nextcloud.com/apps/flowupload |
new attempt to implement this PR
Reusing some code from NastuzziSamy (not anymore because we moved no vue.js)
I am not forking this directly from NastuzziSamy because so much changed in flowupload master.