Skip to content
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 (drag and drop) support for registered users #485

Closed
wants to merge 8 commits into from

Conversation

oparoz
Copy link
Contributor

@oparoz oparoz commented Dec 28, 2015

Superseded by #520

@jospoortvliet
Copy link

I'd suggest to split this, then, start with the drag-and-drop and do the + button later. That way, we not only make the whole thing a bit smaller (easier to review and contribute to) but also ppl can start testing the drag-and-drop part. And, of course, if you don't have time to finish the 2nd part, the first is in.

@jancborchardt
Copy link
Member

Yeah, good call. Even though I’d say the implementation via + button is more important and drag&drop is a nice addition for more advanced folks.

@oparoz
Copy link
Contributor Author

oparoz commented Jan 1, 2016

I'd suggest to split this

No problem from my side. Also, this is a pre-requisite for drag and drop because it touches the way we collect information, so the quicker this is in, the quicker drag and drop can be implemented.

Even though I’d say the implementation via + button is more important and drag&drop is a nice addition for more advanced folks

I think it's more about discovery, as you've mentioned in the issue itself. Some people won't know it's there unless there is a button or a message telling them things have changed.
Having said that, I expect new users to intuitively try drag and drop and to be pleasantly surprised and older users would know about it because of @jospoortvliet 's special report on the new features ;)

In any case, the important first step is to (in)validate the approach.

@oparoz
Copy link
Contributor Author

oparoz commented Jan 6, 2016

OK, so is it working as expected at least? :P

@jospoortvliet
Copy link

I tried to apply the patch to my stock ownCloud 8.2.2 Gallery app, got this:

patching file controller/pagecontroller.php
patching file css/styles.css
Hunk #1 succeeded at 288 (offset 16 lines).
patching file js/gallery.js
patching file js/galleryimage.js
Hunk #1 succeeded at 4 (offset -11 lines).
patching file js/galleryview.js
Hunk #1 FAILED at 9.
Hunk #2 succeeded at 81 (offset -2 lines).
Hunk #3 succeeded at 210 (offset -2 lines).
1 out of 3 hunks FAILED -- saving rejects to file js/galleryview.js.rej
patching file js/thumbnail.js
patching file js/upload-helper.js
patching file service/searchmediaservice.php
patching file templates/part.content.php
Hunk #1 FAILED at 27.
Hunk #2 succeeded at 43 (offset -9 lines).
Hunk #3 succeeded at 69 (offset -9 lines).
Hunk #4 succeeded at 103 (offset -9 lines).
1 out of 4 hunks FAILED -- saving rejects to file templates/part.content.php.rej
patching file tests/unit/GalleryUnitTest.php
patching file tests/unit/controller/PageControllerTest.php
patching file tests/unit/service/SearchMediaServiceTest.php

I'm going to guess that with some fails this won't work well...

@oparoz
Copy link
Contributor Author

oparoz commented Jan 8, 2016

I'm going to guess that with some fails this won't work well...

Correct. You need to use the 9.0 VM

@oparoz oparoz changed the title Add uploading support for registered users Add drag and drop uploading support for registered users Jan 18, 2016
@oparoz
Copy link
Contributor Author

oparoz commented Jan 22, 2016

@setnes @deMattin @arkascha @elpraga @sualko @Bugsbane @mmattel - This needs testing :)

@Bugsbane
Copy link

@oparoz Sure. Can you just tell me how to apply the correct patch?

@oparoz
Copy link
Contributor Author

oparoz commented Jan 22, 2016

Look in the block below, click on the command line instructions and follow step 1.

@oparoz
Copy link
Contributor Author

oparoz commented Jan 22, 2016

That's if you're using a git test instance, of course. I'm not sure it would work as-is on 8.2

@Bugsbane
Copy link

I don't actually see a "block below", and I am on 8.2.2 rather than a git version. I'm fine with backing up the database and app files. I might be able to set up a second (git) install though.

@oparoz
Copy link
Contributor Author

oparoz commented Jan 22, 2016

Here is the official help with detailed instructions. Only step 1 is required. Click on the tiny screenshots to see what we're talking about.

If you don't want to setup a 2nd instance you can use daily VMs. They're great for testing as they're pretty much plug and play.

  1. Mount the .vmdk in VirtualBox
  2. Login and become root in Ubuntu Server (user: ocadmin, pwd: owncloud)
  3. ctrl+c to abort the script
  4. $ bash
  5. cd /var/www/

@oparoz oparoz mentioned this pull request Feb 11, 2016
8 tasks
@oparoz oparoz added this to the 9.1-next milestone Feb 11, 2016
oparoz and others added 7 commits February 12, 2016 16:00
(cherry picked from commit 11d33eb)
(cherry picked from commit a8d0c35)
(cherry picked from commit 0af1416)
(cherry picked from commit 52a89f2)
(cherry picked from commit fe00be3)
(cherry picked from commit 61d7a41)
Fixes #466
Thanks to @setnes for debugging this
(cherry picked from commit b87aaf1)
@oparoz oparoz changed the title Add drag and drop uploading support for registered users Add uploading (drag and drop) support for registered users Feb 12, 2016
@oparoz oparoz force-pushed the official-upload-support branch from 14609ac to 3a3784c Compare February 12, 2016 23:56
@oparoz oparoz closed this Feb 13, 2016
@oparoz oparoz deleted the official-upload-support branch February 29, 2016 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants