files

Upload File

Upload a file to the general upload folder. Returns information about the uploaded file including the storage filename, original filename, and content type.

Args: file: The file to upload use_original_name: If True, uses the original filename, if False generates a UUID

post/api/files/upload

Request

  • Base URL
    https://api.regdoor.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

use_original_nameboolean

Headers

X-User-Emailstring nullable
X-User-Namestring nullable

Request body multipart/form-data

filestring binary required

Response

Successful Response

storage_filenamestring required
original_filenamestring required
content_typestring required

Changes

No recorded changes to this operation across all 1 revision of this API.