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

Uploading to sites other than Imgur? #50

Open
soweliniko opened this issue Jan 5, 2018 · 13 comments
Open

Uploading to sites other than Imgur? #50

soweliniko opened this issue Jan 5, 2018 · 13 comments
Labels
Enhancement Feature requests and code enhancements Plugin Issues related to plugins and API system
Milestone

Comments

@soweliniko
Copy link

Would it be possible to add a feture to allow uploaders to sites other than imgur, or use shareX custom uploaders?

@vdeville
Copy link

vdeville commented Jan 5, 2018

Like SFTP ?

@lupoDharkael
Copy link
Collaborator

Compatibility with their custom uploaders would be nice. Thanks for letting me know about them!

@lupoDharkael lupoDharkael added the Enhancement Feature requests and code enhancements label Jan 5, 2018
@jb55
Copy link

jb55 commented Jan 30, 2018

The simplest option would be to dump the filename to a pre-configured destination on save, and then print the path to stdout without prompting the save dialog. That way you can pass the file to any uploader you want. This allows you to do other things such as custom file names without too much integrated support. You miss out on using the upload button, but this might be fine since it's a poweruser thing.

This would allow me to use flameshot as a drop-in replacement for scrot in this script I'm using right now: https://gist.github.com/jb55/4d60e7fa518cd7816d1ba653fe8d9f4a

I'm thinking something like

flameshot gui --save-path=$HOME/img/ss --format='%F-fs' --no-save-dialog | xargs my-uploader

where --no-save-dialog could be implied by the format/save-path option?

@ryanerwin
Copy link

For me (in China) imgur.com is blocked unless we connect through a proxy, but even when I set a proxy in the "System Settings Module" that setting doesn't appear to be picked up by flameshot as in both cases I get server replied: Unknown error. For people connecting through tor this would also be an issue.

Something along the lines of @jb55 --no-save-dialog would work... but that requires we have already though about the next step (destination) before launching flameshot.

Maybe a handful of custom buttons that called their own shell scripts would be an easy way to go, and very flexible for all sorts of outputs, without requiring the user to setup a separate shortcut for each output mechanism.

@kinghat
Copy link

kinghat commented Nov 20, 2018

some custom uploaders would be nice. i move from windows to linux and need something along the lines of sharex. flameshot is very close at this point. i think shutter has extensible uploaders but i havent used it and am not really sure how its implemented.

@codebully
Copy link

some custom uploaders would be nice. i move from windows to linux and need something along the lines of sharex. flameshot is very close at this point. i think shutter has extensible uploaders but i havent used it and am not really sure how its implemented.

shutter is very strange I never got a custom uploader to work there and I also didn't find any solutions online, very sad.

It would be so nice to have all the pomf sites for uploading and custom sftp support and stuff, I mean lupoDharkael isn't a big company not listening to their users he will probably do it one day and it will be very nice if it's done, this software will be better with time I know it.

@seamus-45
Copy link
Contributor

shutter is very strange

shutter is very slow and buggy :)

I never got a custom uploader to work

you can, if learn some Perl, I wrote one for herself, but overall do not like shutter.

Compatibility with their custom uploaders would be nice

It would be great!
Atm, i'm forced to slightly patch upload url, and mimic Imgur API for that, but custom uploaders or compatibility with pomf clones is highly appreciated.

@seamus-45
Copy link
Contributor

By the way, Lightscreen already support pomf. I see their code pieces was used in this project.
@lupoDharkael Is there a chance that work on the project will be resumed?

@seamus-45
Copy link
Contributor

seamus-45 commented Feb 21, 2020

For those who can't wait official support, linux geeks and just VPS owners, with this PR #688 you can use Flameshot with self hosted software. Nothing special, php+nginx+free space. You can find example server code in comments to above PR.

In this case Flameshot must be configured as below:

[General]
uploadUrl=https://you.vps.host/upload.php

Or just configure it from command line:

flameshot config -u https://you.vps.host/upload.php

NOTE: Second is does not work on Windows

@borgmanJeremy
Copy link
Contributor

Please track this RFC for future discussion on this topic: #955

@borgmanJeremy borgmanJeremy modified the milestones: v0.9.0, v0.10.0 Feb 6, 2021
@JohnPlayerSpecial

This comment was marked as off-topic.

@timawesomeness
Copy link

This has become vastly more important with Imgur's decision to remove "old, unused, and inactive content that is not tied to a user account", which would seem to include screenshots uploaded by flameshot.

@borgmanJeremy
Copy link
Contributor

I am just a user now (not maintainer) but my vote would be to just rip out the uploading system since its about to break w/ Imgur. I think including an uploader was a mistake and scope creep.

@mmahmoudian mmahmoudian added the Plugin Issues related to plugins and API system label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Feature requests and code enhancements Plugin Issues related to plugins and API system
Projects
None yet
Development

No branches or pull requests