Giter VIP home page Giter VIP logo

swiftp's Introduction

swiftp's People

Contributors

3rg1s avatar androidol avatar ashutoshgngwr avatar chankruze avatar constambeys avatar ismael034 avatar j3l11234 avatar linquize avatar mcmartin25 avatar naofum avatar nikoss avatar pontorez avatar poussinou avatar ppareit avatar relan avatar sankam-nikolya avatar valdnet avatar valentind44 avatar valerio-bozzolan avatar waldist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiftp's Issues

fails to start when using ethernet port in stead of wifi

I have an ethernet card connected to my Android device and wifi disabled.
When I now try to start the FTP server it fails and suggest to turn on wifi:
http://img526.imageshack.us/img526/9010/screenshot2012120212215.png

However, when I temporary enable wifi, start the server and disable wifi again it works.
Even though the server will prompt the warning "Can't retrive url".

So the server should check not for a wifi connection but for any type of network connection. Or at least start without wifi enabled.

Starts when not on wifi network

Ftp server starts when not on a wifi network. This is strange beheavior.

Or we should not start.
Or we should first start the wifi network.

Multiple accounts

It would be useful to allow addition of multiple accounts. Each with a separate login, password and rootfolder.

(from play store request by Van Li)

FEAT

Each individual line with a feature returning should start with a space.
src/be/ppareit/server/CmdFEAT.java

Allow anonymous ftp

There should be an option to allow anonymous ftp. Possible with only read access right.

MDTM support

Support the MDTM command to set the proper modification date/time after copying files to the FTP server. This is essential in order for this program to be compatible with backup and sync utilities.

Note: please use this issue tracker for swiftp, and not the google play store comment section. It is hard to keep track and I cannot close issues there.

Support ZeroConf

With ZeroConfiguration we can connect to device with it's hostname rather than IP address, it would be handy if the device is on a network dynamically assigning addresses.

AFAICS this can be implemented by jmdns library, FYI.
http://jmdns.sourceforge.net/

State becomes invalid when user swipes preferences away in task manager

While this is some exceptional case, we should try to handle this graceful. How to reproduce:

  • start application
  • start server from the switch
  • press home
  • open task manager
  • swipe away the application

Notification of server running stays active. From other device it is not possible to log in to sever, giving timeout.

Default directory pointing to external storage

I believe it would be best if it was "/mnt/sdcard" instead of "/". The reason
for this is the app does not have permissions to manage root
directories and the main use is to access the external storage from
another device wirelessly. That directory would be the default for
many phones, but it changes on some to "/mnt/extsdcard' and probably
others directories too. (guitarist)

Low transfer performance

I only get about 200KB/s of data transfer, I wondered if the demo version app have such speed limit?

My device is Nexus 7(2013) in a 802.11G strong Wi-Fi network

Can't start FTP server when USB tethering

Tested version: 2.10

Steps to reproduce:

  1. Enable Android's USB tethering feature.
  2. Try to start the FTP server using the toggle.

Expected results: FTP server should start.

Observed results: "Failed to start the FTP server, not connected to the local network (wifi or ethernet)?"

WiFi tethering seems to work fine.

Delete file only truncates

There's a bug that existed in the old version and still exists here. Whene you delete the file, it disappears from the remote folder but, if you go looking into the phone (or if you simply refresh the Filezilla window), you'll notice that the file will appear with the same name and a size of 0 bytes. You have to manually delete them from an Android file manager like Astro.

chroot violation with lftp when staying in folder /sdcard

Hi,

I'm getting an "Invalid name or chroot violation" when I set the "Stay in folder" setting to "/sdcard" and try to access some subfolders using lftp. Accessing the /sdcard folder works though. Here is the scenario and the result from it:

user$ lftp ftp:[email protected]:2121                                                                   
lftp [email protected]:/> ls
drwxr-xr-x 1 owner group         4096 Jan 31 01:25 Android
drwxr-xr-x 1 owner group         4096 Jan 01 05:25 Music
drwxr-xr-x 1 owner group         4096 Jan 01 05:25 Podcasts
drwxr-xr-x 1 owner group         4096 Jan 01 05:25 Ringtones
drwxr-xr-x 1 owner group         4096 Jan 01 05:25 Alarms
drwxr-xr-x 1 owner group         4096 Jan 01 05:26 Notifications
drwxr-xr-x 1 owner group         4096 Jan 28 20:25 Pictures
drwxr-xr-x 1 owner group         4096 Jan 01 05:25 Movies
drwxr-xr-x 1 owner group         4096 Jan 28 23:47 Download
drwxr-xr-x 1 owner group         4096 Jan 31 13:19 DCIM
drwxr-xr-x 1 owner group         4096 Jan 28 20:31 .estrongs
drwxr-xr-x 1 owner group         4096 Jan 28 21:07 backups
drwxr-xr-x 1 owner group         4096 Jan 28 23:47 Data
drwxr-xr-x 1 owner group         4096 Jan 28 23:41 .thinkfree
drwxr-xr-x 1 owner group         4096 Jan 30 01:59 tmp
drwxr-xr-x 1 owner group         4096 Jan 31 00:59 current
drwxr-xr-x 1 owner group         4096 Jan 29 15:06 Books
lftp [email protected]:/> cd tmp/
lftp [email protected]:/tmp> ls
ls: Zugriff nicht möglich:550 Invalid name or chroot violation
lftp [email protected]:/tmp> 

Access also works if the "Stay in folder" setting is set to "/".

Thanks for your work,

Best regards,

Karl

Demo and Paid intents clash

Seems like one version won't start if the other version is installed. The intent to start the server can't be the same for both.
Possible solution:

  • no longer exporting the intent in the free version
  • rename the intent in the free version

Check integrity of file transfers (XMD5, XSHA1)

From mail by Stan (19/1/2014, subject 'ftp server')

I'm using fireftp in firefox as client. If enabled, FireFTP will do a hash check after a file transfer. This is used to verify that every bit of the file has transfered correctly. Although rare, sometimes a file can be corrupted when downloaded or uploaded, and a bit can change or could be lost. A hash of a file gives you a short string of characters that uniquely identifies a file. If the FTP server's hash of the file and FireFTP's hash match then splendid, all is well - if they don't match, then your file is corrupted and you should transfer it again. (The FTP server must be configured to allow the XMD5 or XSHA1 command for this option to work.)"

Feature request: sort file list output

Hello,

I bought the program from the Android Market some weeks ago and I'm very satisfied with it. It's simple and it works!

There's a minor annoyance I'd like addressed. When listing files from a directory, the entries are not sorted, which can be a bit annoying depending on the client you're using.

I'm not a Java or Android developer, so I can't provide a pull request. However, if I understood the code correctly, sorting could happen just before this loop:

https://github.com/ppareit/swiftp/blob/master/Lib/src/be/ppareit/swiftp/server/CmdAbstractListing.java#L59

And Arrays.sort and something like the DirAlphaComparator from here should do the job:

http://leepoint.net/notes-java/data/collections/comparators.html

Thanks in advance!

Edit: correct line number in link.

Error 550 when writing to the external storage

Hi!

I get an Error 550 when I try to write to the external storage on my Samsung Tablet running Android 4.4.2.

Can you make it possible to store things on the external SD card?

Mebus

Password displayed

Currently the password is displayed. Use a password text box instead. Optionally add option 'Show password'.

tethering

The app could use the Wi-Fi tethering option on the phone.

FC on delete file

There is a crashing bug when deleting a file. I currently don't know how to reproduce. See email on 14 december by Isaiah.

It is important that this is resolved by next release.

Chinese Translation Updated

This is the latest version for FTP Server.

And I found a mistake in English
"Can't retreive url"
It's should be
"Can't retrieve url"

    The password must consist of 1 or more alphanumeric characters. No other characters are allowed.
It's Password? It isn't Username?

Attachment of Chinese translation: see mail of 28/08/13

Widget

Widget that can toggle Ftp server running.

Wrong status update possible

Reproduce:

  • try to connect while no wifi connection
    Error message will be displayed (expected beheavior)
  • quickly connect with wifi on
    Connection will work and status message will update (expected)
  • wait a little time
    State will display that the device is not connected (wrong)

The handler that resets the state is not cleared when user tries to reconnect.

media rescan should only run once at the end of ftp session, not after each deletion

At the moment (2.5.4 from f-droid repository, android 2.3.* device), a media rescan process is run every time a file is deleted during an ftp session.

This is not needed, and can cause significant slowdown and even hang the device, for example when moving/deleting dozens (hundred) of files from the device.

The media rescan process should only be run once at the end of the ftp session, not right after each file deletion.

Can't connect through IPv6

My smartphone is connected through a VPN.
When I try to access the FTP server with the VPN IPv4, everything works fine.
But when I use the IPv6, I get a 502 error.

Here is the Filezilla log:

Status: Connecting to [2a00:5881:8100:100::5]:2121...
Status: Connection established, waiting for welcome message...
Response:   220 SwiFTP 2.10 ready
Command:    USER pierre
Response:   331 Send password
Command:    PASS *********
Response:   230 Access granted
Command:    SYST
Response:   215 UNIX Type: L8
Command:    FEAT
Response:   211-Features supported by FTP Server
Response:    UTF8
Response:    MDTM
Response:    MFMT
Response:   211 End
Command:    OPTS UTF8 ON
Response:   200 OPTS accepted
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/"
Command:    TYPE I
Response:   200 Binary type set
Command:    EPSV
Response:   502 Command not recognized
Command:    EPRT |2|2a01:e35:8a04:870:5246:5dff:feb8:a42b|48257|
Response:   502 Command not recognized
Error:  Failed to retrieve directory listing

Starts when not on wifi network

Ftp server starts when not on a wifi network. This is strange beheavior.

Or we should not start.
Or we should first start the wifi network.

ftpserver does not start with active mobile hotspot/tethering

The message after pressing "Start FTP server" is:
"Failed to start the FTP server, no wifi?"

...which is not quite understandable - after all, wifi is active. Also, it would be awesome. No need to connect both my laptop and my phone to the same network anymore, mobile fileserver, ...

Thanks for your great app btw!

File rename is case insensitive

The file rename operation doesn't account for upper/lower case.
If I try to rename the file "A.jpg" to "a.jpg" through the ftp client, the file name stays A.jpg (I don't get any errors from the ftp client).

Tested on swiftp 2.5.3 and a couple of different ftp clients (on Linux).

MFMT support

Add the MFMT (Modify Fact: Modification Time) command to the android ftp server app / swiftp. With this command it is possible to preserve the original date and time of a file after copying it to the server. E.g. filezilla supports this command via enabling the option "Transfer" -> "Preserve timestamps of transferred files"

Selecting widget feedback

When tapping the widget, there should be a feedback (background changing colour). This was not possible earlier, but because we are now using newer sdk version, this be easy to add.

Starts when not on wifi network

Ftp server starts when not on a wifi network. This is strange beheavior.

Or we should not start.
Or we should first start the wifi network.

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.