Giter Site home page Giter Site logo

sftp_uploader's People

Contributors

dasavick avatar de-don avatar denis-dontsov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sftp_uploader's Issues

how to set the domain upload path ?

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

doesn't work on pterodactyl servers

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"

Error in URL %!(EXTRA string=

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)

  1. How to make url without it %!(EXTRA string=
  2. How can I add a full date to the beginning of a filename _OPbI.png

System: 5.4.0-135-generic #152-Ubuntu 20.04
GO: version go1.13.8

Pre-Built Binaries are not Up to Date

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.