Simple and robust file download/upload WebGL implementation.
No HTML template modification required.
There are two ways to use that package:
- SK_Dropzone component
- SK_FileBrowser API methodsIt's a WebGL components, but some mock implementation is available for Unity Editor.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 methodsSK_Dropzone component accepts parameters:Html Id - Html element ID (should be unique per dropzone)Allow Multiple - If multiple files drop/upload should be supportedAccepted Types - Accepted file types. Check: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#acceptYou could also request file download/upload by code using:SK_FileBrowser.DownloadFile(fileName, fileByteArray);SK_FileBrowser.PickFile(options, callback);