Setting Up

Persist File System

10min
introduction signzy's persist file system is a dynamic solution designed to streamline file uploading and sharing processes with ease and efficiency with our system, users can conveniently upload files either as base64 encoded data or traditional file formats, allowing for flexible integration across various platforms once uploaded, our system securely stores the files and generates publicly accessible urls, enabling seamless sharing and access for intended recipients whether for personal or professional use, signzy's persist file system ensures hassle free file management and distribution, empowering users with a reliable and convenient solution api details the details of the api can be found here sample curl file upload pre production curl location 'https //preproduction persist signzy tech/api/files/upload' \\ \ form 'file=@"/path/to/file"' \\ \ form 'ttl="3 years"' production curl location 'https //persist signzy tech/api/files/upload' \\ \ form 'file=@"/path/to/file"' \\ \ form 'ttl="3 years"' base64 upload pre production curl location 'https //preproduction persist signzy tech/api/base64strings/upload' \\ \ form 'base64string=""' \\ \ form 'mimetype="image/jpeg"' \\ \ form 'ttl="3 years"' production curl location 'https //persist signzy tech/api/base64strings/upload' \\ \ form 'base64string=""' \\ \ form 'mimetype="image/jpeg"' \\ \ form 'ttl="3 years"' base64 json upload pre production curl location 'https //preproduction persist signzy tech/api/base64' \\ \ header 'content type application/json' \\ \ data '{ "base64string" "", "mimetype" "image/jpeg", "ttl" "10 mins" }' production curl location 'https //persist signzy tech/api/base64' \\ \ header 'content type application/json' \\ \ data '{ "base64string" "", "mimetype" "image/jpeg", "ttl" "10 mins" }' input parameters key description file file you want to upload (maximum size 100 mb) ttl accepts the following values (2 mins, 10 mins, 30 mins, 2 hrs, 12 hrs, 24 hrs, 7 days, 15 days, 1 month, 3 month, 6 month, 1 year, 3 years, infinity) default value, if invalid ttl is passed is 30 secs base64string base64 of the file with 100mb size limit mimetype mime type possible types (image/jpeg, image/png, image/jpg, application/pdf) sample response file upload { "file" { "id" " id ", "filetype" " mimetype ", "size" size, "directurl" "https //persist signzy tech/api/files/ id /download/ name ", "protected" true/false } } base64 upload { "file" { "id" " id ", "filetype" " mimetype ", "size" size, "directurl" "https //persist signzy tech/api/base64strings/ id /download/ name ", "protected" true/false } } base64 json upload { "file" { "id" " id ", "filetype" " mimetype ", "size" size, "directurl" "https //persist signzy tech/api/files/ id /download/ name ", "protected" true/false } } sample errors 400 { "name" "error", "message" "", "reason" "validation error", "type" "bad request", "statuscode" 400 } 401 { "message" "invalid authentication credentials" } 404 { "name" "error", "message" "", "reason" "not found", "type" "not found", "statuscode" 404 } 500 { "error" { "name" "error", "message" "internal server error", "reason" "internal server error", "type" "internal server error", "statuscode" 500 } } error parameters parameter type description name string in case of errors, it will have the value "error" it represents an error message string message for the error reason string reasons for the error type string type of error statuscode string status code of the error error codes error code error message explanation 400 bad request input parameter has a missing required parameter or invalid inputs 401 authorization failed authorization token is invalid 404 not found signer id or the contract id is not found in the system 500 internal server error internal error at signzy, please reach out to help\@signzy com