Create /delete FTP users and assign directory

Hey guys,

I am currently developing a web app with Django that is processing digital orders.

I want the customers to be able to upload their files via ftp as an option (web uploading works already), but I have no clue where to start…

My thoughts as how it could be done so far:

On order dynamically create a virtual ftp user and assign it to a newly created order and tmp directory

Watchdog via celery on that folder --> do stuff with files or set order on hold

delete ftp user

My questions to that:

Is it feasible that way? Is there a better way to do it?

What ftp server to use and how do i create users and delete users from within django?

Any help is appreciated

First, keep in mind that “ftp” is a protocol. You can implement that protocol using any number of different ways or using different programs.

So getting started, I’d be looking for an ftp daemon that provides facilities that you could integrate with - specifically as it relates to credentials. Everything else then becomes an issue of writing code to work with those interfaces.