This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { put } from '@vercel/blob'; | |
| /** | |
| * Serverless API handler for image upload to Vercel Blob Storage | |
| * Using Vercel Web Standard fetch API | |
| */ | |
| export default { | |
| /** | |
| * @param {Request} request - Web Standard Request object containing multipart form data | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch | grep -v "master" | xargs git branch -D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global core.autocrlf false | |
| git rm --cached -r . | |
| git reset --hard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fileDownloadManager = { | |
| initDownload({ endpoint, filename }) { | |
| fileDownloadManager.endpoint = endpoint | |
| fileDownloadManager.filename = filename | |
| const permissions = window.cordova.plugins.permissions | |
| permissions.checkPermission( | |
| permissions.READ_EXTERNAL_STORAGE, | |
| fileDownloadManager.checkPermissionCallback, | |
| null |