Publisher | LullaByte |
---|---|
File size | 105.61kB |
Number of files | 14 |
Latest version | 1.0.1 |
Latest release date | 2023-11-14 04:46:40 |
First release date | 2023-05-05 11:04:12 |
Supported Unity versions | 2018.4.2 or higher |
Simple and robust solution for Uploading/Downloading files in Unity WebGL project.
There are two ways to use package:
- Use the ready SK_Dropzone component. (Works when clicked, or when file dropped)
- Use SK_FileBrowser methods
SK_Dropzone component accepts parameters:
- Html Id - Html element ID (should be unique per dropzone)
- Allow Multiple - If multiple files drop/upload should be supported
- Accepted Types - Accepted file types. Check: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
You could also request file download/upload by code using:
- SK_FileBrowser.DownloadFile(fileName, fileByteArray);
- SK_FileBrowser.PickFile(options, callback);