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

[Feature] Imageupload via Drag & Drop #28

Closed
schickling opened this issue Jul 1, 2013 · 6 comments
Closed

[Feature] Imageupload via Drag & Drop #28

schickling opened this issue Jul 1, 2013 · 6 comments

Comments

@schickling
Copy link

For writing documents with images it would be very handy to upload images via drag&drop. So simply drag a image on the textarea and the file automatically gets uploaded to an image hoster.

@benweet
Copy link
Owner

benweet commented Jul 3, 2013

That would be too simple. You need at least to specify the hosting service (StackEdit doesn't provide online storage). What's wrong with the Google+ popup? That's only 3 clicks!

@schickling
Copy link
Author

First of all: in my opinion, when it comes to get things done, there is no "too simple" way. Thats what I love about Google Drive. You just drag the image into the editor and there it is.

Concerning the hosting service. There are a lot of free image hosters out there. A user could select which he wants in the preferences. And that doesn't mean the Google+ popup is replaced.

@mAAdhaTTah
Copy link

Would it be possible to just save the image in the same local storage location as the MD file itself? Although I suppose that would make the syncing through Google Drive difficult...

@benweet
Copy link
Owner

benweet commented Jul 7, 2013

Yes, images can be stored on client side and displayed using data URI and even embedded in the Markdown, see this link. The problem: large images take large amount of space in the local storage and the textarea would be unusable if they were embedded in Markdown.

@benweet
Copy link
Owner

benweet commented Jul 17, 2013

Fixed.

Image hosting is provided by Picasa/Google+. The upload is actually relayed to an heroku web app because google photo API doesn't support CORS. So it can take a while especially if the dyno is sleeping.

@benweet benweet closed this as completed Jul 17, 2013
@schickling
Copy link
Author

Awesome!

I also proposed some hosting specific improvements here #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants