Appendix B: Managing Files

Quick Base applications can support file attachment storage and file attachment access through the API’s file upload and download feature. Files are “attached” through a record field that has the type File Attachment.

File attachments are stored in a special database that is separate from the Quick Base application database. That means they won’t take up space in the Quick Base application database.

This section describes the typical upload scenario where access to the local file system is available if needed. If your environment cannot make use of the local file system, you may need to use the API_UploadFile call.

Uploading files

Files are uploaded as file attachments to a record during an API_AddRecord or API_EditRecord call. The file field you use for file attachments must be of type File Attachment.

The file must be base64-encoded. You should not use MIME style encoding with newline characters at a maximum line length of 76. Instead, Quick Base requires you omit these newlines. (If you don’t omit the newlines, the stored file in Quick Base won’t be usable.)

Because of the typical file sizes, you won’t be able to upload files using a URL. You must POST the encoded file as XML.

Downloading files

You can download a file in two ways:

Note: If you use file attachments, you should understand how Quick Base versions files. See the Quick Base online help for more information.


Go back    |     |  

© 1999-2018 QuickBase, Inc. All rights reserved. Legal Notices.