Skip to main content

.upload()

architect.file.upload(file);

Returns a ArchitectFileResource representing uploaded file URL.

Parameters#

This method takes 1 parameter:

ParameterRequiredTypeDefault valueDescription
filetrueFileFile prepared for upload

Response#

Successful response returns a HTTP 200 OK status and the following body:

TypeDescription
ArchitectFileResourceSource URL location