de-don / sftp_uploader Goto Github PK
View Code? Open in Web Editor NEWSftp image uploader
Sftp image uploader
Hello Denis,
Can you tell me how to set the domain upload path ?
It seems that the script is uploading into the domain Web Root.
Best Regards,
Alex
When i try to upload the image, this error happens:
Failed to dial: ssh: handshake failed: ssh: overflow reading version string
Is it some way to fix it?
Hello, I use a pterodactyl server from my friend, but it doesn't work.
When I get the URL copied to my clipboard, it's wrong (http://domain.com/sftp_username/screenxxx.png), but it should be http://domain.com:3000/screenxxx.png.
And I would like to have it uploaded in a specific directory, but that doesn't work, it always uploads it in the root directory.
My configuration is:
[server]
host = domain.com
port = 2022 # (sftp port)
[credentials]
username = sftp_username
password = sftp_password
[other]
# for example 2006-01-02 15:04:05 (USE ONLY THIS VALUE OF DATE)
# 2006-01-02_15-04-05
# 15h04m05s_2006y01m02d
name_pattern = "screen_2006-01-02_15-04-05"
upload_directory = /home/container/uploads
url_pattern = "http://domain.com:3000/%s"
Hello, I'm trying to use this script to send screenshots via SFTP. But there is a problem, when it generates a URL for me, it will turn out like this:
http://2w2.more.er:3333/~ivanov%!(EXTRA string=_OPbI.png)
System: 5.4.0-135-generic #152-Ubuntu 20.04
GO: version go1.13.8
The released binaries and the actual code is not the same. As a result, when I was trying to use these distributed binaries to setup a custom URL path, it was not being registered.
I would fix this myself but I cannot edit releases (obviously), so this is just an FYI! Might be helpful for new users.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.