Implementing Tencent Cloud Image Upload in Vue.js Applications
First, install the required dependencies:
npm install cos-js-sdk-v5 spark-md5 --save
1. Create a utility file for cloud storage operatiosn
Create src/utils/cloud-storage.js:
import COS from 'cos-js-sdk-v5'
import SparkMD5 from 'spark-md5'
import { getTempCredentials, getCloudConfig } from '@/api/storage'
let fileKey = ''
// Initialize Tence ...
Posted on Sat, 12 Sep 2026 16:50:30 +0000 by FastLaneHosting
OpenStack Glance Image Upload Fails Due to Disk Quota Exceeded
When attempting to upload a image to OpenStack Glance, the operation fails with a "500 Internal Server Error" response. This issue occurs despite the image creation command appearing to succeed initially.
The following command demonstrates the failed upload attempt:
glance image-create --name "CentOS_7.5_238.110" --file Cent ...
Posted on Tue, 11 Aug 2026 16:28:27 +0000 by joesaddigh
Setting Local Images as Canvas Background with Fabric.js
Native Implementation
To load a local image onto a Fabric.js canvas as a background, begin by initializing the canvas and handling file input. Due to browser security policies, direct access to file paths is restricted, so we use URL.createObjectURL() to obtain a temporary reference.
<input type="file" id="imageLoader" on ...
Posted on Thu, 07 May 2026 10:38:52 +0000 by SZero