#1 2024-09-12 21:18:26

Esequias
Member
Registered: 2023-06-29
Posts: 4

File server, that allows to send and receive files, similar to FTP

Some time ago I was studying the documentation of mORMot1, to use mORMot in Delphi 7, because I am giving maintenance to a project developed with Delphi 7. This project is an invoicing software and in the short term they are not going to migrate it to a more recent version of Delphi, according to what the administrators have indicated to me.

When I have availability, I am going to study a little bit the operation of mORMot2 to see how I can develop a simple file server, that allows to send and receive files, similar to a FTP, because I need to be able to send and receive files (.jpg, .pdf, .xml, .docx) between a server and about 20 PCs in a local network, all the computers have Windows. To send a file from a PC to the server you must indicate the relative path, the name and the content of the file. Then to retrieve a file you have to send the relative path and the name of the file. It is something that seems very simple but I have very little experience.

I would be very grateful for any recommendations you can give me.

Offline

#2 2024-09-13 06:34:27

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: File server, that allows to send and receive files, similar to FTP

Take a look at https://github.com/synopse/mORMot2/tree … yDemos/tbo and the other samples.

For this, I would just use a method-based service, then store the files on a server folder.
Using a DB may be overkill for this project, unless you want to cipher the content, then an encrypted SQLite3 database may be ideal.

But a simple HTTP server could be enough: use POST to sent the file, DELETE to erase, GET to retrieve it.
Use a HTTPS self-signed certificate on the server, and set a JWT bearer for authentification, or require client authentication.

Offline

#3 2024-09-13 15:29:32

Esequias
Member
Registered: 2023-06-29
Posts: 4

Re: File server, that allows to send and receive files, similar to FTP

Thank you very much.

As soon as I have availability to work on the project, I will follow your recommendations.

Offline

Board footer

Powered by FluxBB