We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try { // 获取上传的文件 const file = FilePicker.files[0]; const options = { meta: { temp: "demo" }, mime: "json", headers: { "Content-Type": "text/plain" }, }; // const blob = new Blob([bytes],{type: fileType}); var data = new Blob(['This is the sample data']); // 将文件上传到阿里云OSS const result = await client.put("debug.txt", data,options); console.log("========="); console.log(result); // 显示上传成功的消息 showAlert('上传成功', 'success'); // 获取上传后的文件URL const uploadedFileUrl = result.url; console.log("Uploaded File URL:", uploadedFileUrl); // 将上传的文件URL保存到变量 myvar1 = uploadedFileUrl; // 返回文件URL,或者在需要的地方使用这个变量 return myvar1; } catch (e) { // 显示上传失败的消息 console.log("caceh" + e); showAlert('上传失败: ' + e.message, 'error'); }
this log file is as below ,you can refer 47.94.208.160-1724898269844.log
The text was updated successfully, but these errors were encountered:
Any update ?
Sorry, something went wrong.
The provided code snippet does not reveal any apparent issues. However, based on the log information, the following problems may exist:
If it is not due to the above reasons, please provide a minimal reproducible repository and steps to reproduce it so that we can check it out.
No branches or pull requests
this log file is as below ,you can refer
47.94.208.160-1724898269844.log
The text was updated successfully, but these errors were encountered: