Getting Started
To get started with Archivo Elements, you can use following methods:
- Usage via Script Tag:
- Installation from NPM:
Using Archivo Upload Button
To include Archivo Upload Button in your project, use the following code:
- Attributes of Archivo Upload Button:
artitle: [String] Specify the title of the button.araccept: [String] Specify what file types the user can pick from the file input dialog box. Learn More
artitle: [boolean] Specify whether to accept multiple files or not. (Default: false).
- Methods of Archivo Upload Button
getFileData(): Returns uploaded file(s) as an array of Data URLs.Using Archivo Download button
To include Archivo Download Button in your project, use the below code:
- Attributes of Archivo Download Button:
artitle: [String] Specify the title of the button.arfilename: [String] Specify name of the downloading file.
armimetype: [String] Specify the format of the file. Learn More.
ardata: [any] Pass file data to download. (Note: for media file types like images, audio, videos data should be passed in Data URL format)
Send Suggestions or Report an Issue
The project is still in beta and we keep improving it. We gladly welcome your suggestions and opinions. Please feel free to suggest a feature or report an issue here.
Archivo Elements Logo |