-1

I want to create a small file upload web server with Flask.

The caviat is that i want this to be a headless server. No HTML files or templates server.

The user will hit the upload path with a (path+filename) to the file to be uploaded as a parameter.

The server, when the request is triggered will get that file and upload it. No forms.

Is this possible?

user1584421
  • 2,357
  • 7
  • 31
  • 54

1 Answers1

1

You can certainly directly send a POST request to a server, without loading a form before.

You have to provide an endpoint on your server which accepts the POST request.

Your user could use e.g. curl.

J.G.
  • 2,681
  • 2
  • 14
  • 20