heiglandreas,
@heiglandreas@phpc.social avatar

Anyone around that knows whether there is ANY package around that implements an FTP server on top of react?

The results of my google foo as well as of a search on packagist are more ... well...

imagine a western, high noon right in front of the bar: and now remove the tumbleweed...

deleugpn,
@deleugpn@fosstodon.org avatar

@heiglandreas I would love to have a PHP implementation of the FTP protocol to run on AWS Lambda forwarding file uploads straight to S3, in case you have it 🙂

Flyingmana,
@Flyingmana@phpc.social avatar

@heiglandreas found this one with a bit of searching
https://github.com/zhusaidong/FTPServer

heiglandreas,
@heiglandreas@phpc.social avatar

@reactphp that is!!!!

I have to upload files via FTP but would like to not put them into a filesystem but to handle them with a handler/middleware - So reactphp/http but for ftp... Might be too much....

evert,

@heiglandreas @reactphp ah gotcha! sounds like WebDAV might also work here

heiglandreas,
@heiglandreas@phpc.social avatar

@evert Apart from the fact that the client that needs to use this app only understands FTP (don't ask! 🤦‍♂️ ) @reactphp

wyri,
@wyri@haxim.us avatar

@heiglandreas @evert @reactphp If you find such client, please lets us know because a filesystem adapter for FTP could be useful for others.

evert,

@wyri @heiglandreas @reactphp if you got a budget ill happily build something in Node that can forward to a HTTP endpoint =)

wyri,
@wyri@haxim.us avatar

@evert @heiglandreas @reactphp Well I nether have a budget nor use case for FTP to be honest. But maybe @heiglandreas has a budget

heiglandreas,
@heiglandreas@phpc.social avatar

@wyri @evert @reactphp Sadly no.... 🙈

heiglandreas,
@heiglandreas@phpc.social avatar

@wyri @evert @reactphp I'd rather build something that- aftee going through a middleware-stack - invokes something that can then - amongst other possibilities - also use a filesystem 😁

alessandrolai,
@alessandrolai@phpc.social avatar

@heiglandreas @reactphp have you thought about using some AWS async stuff? It seems a perfect task for S3+SQS+lambda/Bref

heiglandreas,
@heiglandreas@phpc.social avatar

@alessandrolai @reactphp I have a client that can only send ftp and I need the file - after a slight modification - as email attachment.

Yes , I might be able to use bref for that but that's similarily complex. And can I use lambdas for something else than HTTP? So far my impression was that that's kinda a requirement....

alessandrolai,
@alessandrolai@phpc.social avatar

@heiglandreas @reactphp S3 has an FTP adapter. Then, you can hook a lambda function to a notification of something landing on S3: https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example.html

heiglandreas,
@heiglandreas@phpc.social avatar

@alessandrolai Cool! Thanks. I definitely need to check that! Especialy as latency is not anissue at all!

But it's not @reactphp ...

deleugpn,
@deleugpn@fosstodon.org avatar

@alessandrolai @heiglandreas @reactphp this ideia works without reactphp easily, but AWS SFTP for S3 costs about $250/m I think. If you need a staging server and a prod server, you're out $500/m for an SFTP protocol S3 Forwarding. I'd love to have it, but I refuse to pay that outrageous price

ramsey,
@ramsey@phpc.social avatar

@heiglandreas I think those projects (i.e., and ) are waiting for the community to discover them and build out these solutions. It’s still very early for them.

heiglandreas,
@heiglandreas@phpc.social avatar

@ramsey And FTP is.... shall we say .... legacy? 🙈

ramsey,
@ramsey@phpc.social avatar

@heiglandreas You’d have to go for the socket server and implement all the commands yourself.

ramsey,
@ramsey@phpc.social avatar

@heiglandreas I started down this path for NNTP once upon a time, but I never finished.

heiglandreas,
@heiglandreas@phpc.social avatar

@ramsey Yeah. I assumed this already! But thought I'd ask.... 😁

heiglandreas,
@heiglandreas@phpc.social avatar

@ramsey OTOH.... That sounds pretty interesting! I suddenly have an idea in my mind.... regarding colobus..... 😁

ramsey,
@ramsey@phpc.social avatar

@heiglandreas I did get most of the way on an initial implementation. I should post my code somewhere.

evert,

@heiglandreas a server on top of react? Seems a bit like an apple and oranges thing?

ramsey,
@ramsey@phpc.social avatar

@evert @heiglandreas That’s what React helps you do…build servers.

evert,

@ramsey i forgot there was something else in PHP called react.

alessandrolai,
@alessandrolai@phpc.social avatar

@evert @ramsey and it even predates the frontend one!

evert,

@alessandrolai @ramsey yeah it would be silly to name something React after ;)

heiglandreas,
@heiglandreas@phpc.social avatar

@evert Well.... React listenes on a port. And I'd rather have it listen on 21/22 than 80...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines