neoDownload
File downloading from Base64 data or URL.
Based on:
https://github.com/rndme/download
Description
The neoDownload plugin for VisualNEO Web provides functionality for downloading files either from Base64 data or directly from a URL, making it ideal for apps that need to deliver downloadable content to users. Here’s a summary of its main capabilities:
- File Download from Data:
- neoDownloadData: This command enables developers to initiate a download using Base64-encoded data. It requires specifying the data to download, the filename, and the MIME type (e.g., text/plain or application/pdf), which ensures the file downloads with the correct format and name.
- File Download from URL:
- neoDownloadURL: This command downloads a file directly from a specified URL. However, it is essential to note that this function does not support Cross-Origin Resource Sharing (CORS), meaning it only works with files hosted on the same domain or accessible without CORS restrictions.
The neoDownload plugin is a straightforward solution for applications that need to provide file downloads, from user-generated content to static resources, and is suitable for web apps where content distribution is essential.
neoDownloadData
|
Purpose: |
Download file from data |
|
Category: |
neoDownload |
|
Syntax: |
neoDownloadData "theData" "fileName" theMime
theData Data to download (text or base64 string) fileName File name theMime Mime type (ie: text/plain) |
neoDownloadURL
|
Purpose: |
Download file from URL (CORS not allowed) |
|
Category: |
neoDownload |
|
Syntax: |
neoDownloadURL "theUrl"
theUrl File URL (ie: myfolder/myfile.zip) |
Created with the Personal Edition of HelpNDoc: Easily create Qt Help files