Growstuff / growstuff

Open data project for small-scale food growers
http://growstuff.org/
GNU Affero General Public License v3.0
430 stars 212 forks source link

Allow direct photo upload #513

Open Skud opened 9 years ago

Skud commented 9 years ago

I should be able to upload photos directly to the site, rather than having to use Flickr. (But Flickr shouldn't go away. There should just be options.)

I should be able to upload photos anywhere that Flickr is currently used, eg. gardens, harvests, plantings, etc.

When uploading a photo I should be able to choose a license from a dropdown or similar. We should list at least CC-BY, CC-BY-SA, and "all rights reserved". (Those two licenses are compatible with Growstuff's data license, so I'd like to encourage them rather than the ND or NC clauses.)

We should keep an eye on what this will cost us in hosting, and consider whether we want to limit the number of photos that free users can upload (probably in the 100-1000 range).

cesy commented 9 years ago

It looks like the Paperclip gem will be a good place to start for this.

cobismith commented 9 years ago

I want this too!

Skud commented 9 years ago

Similar work has been done on 3000 Acres, here, if we want to gank the code: https://github.com/3000acres/3000acres/pull/81

(3000 Acres is a sister project to Growstuff, under the same license.)

CloCkWeRX commented 9 years ago

807 is fairly hampered by this.

It would be good as well, once the oauth plugins for more providers are done to look at things like:

... and have the flickr choosing styled in a similar way.

Trello upload I think is pretty much the 'gold standard' for a multiple source upload UI; tucked away under one button but expanding out to get more detailed.

trello_upload

Alternatively, what's offered with html5 file inputs and image limitations, plus a bit of javscript gives us handy thumbnailing support without upload (https://developer.mozilla.org/en/docs/Using_files_from_web_applications) - I believe there's a fair few all in one upload controls, such as https://blueimp.github.io/jQuery-File-Upload/ which greatly enhance the experience as well.

cesy commented 9 years ago

Realistically we want to get the rest of Release 9 live without waiting for this.