This module provides a secure endpoint for uploading single files to your Drupal site. It uses basic authentication and checks user permissions before saving the uploaded file to a designated file system.
The module creates an endpoint on the site at /postfile/upload that accepts a POST request for uploading a single file into a specified file system (public, private, etc).
The POST request requires a user with the proper permissions before the file is uploaded. The endpoint uses the basic_auth REST authentication provider.
The request would look something like this:
curl
--location 'https://www.example.com/postfile/upload' \
--header 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ' \
--form 'file=@"/path/to/file.csv"'
Ask your assistant about POST File
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- basic_auth Drupal core
- file Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.