-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?

0

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.