ux: paste to upload example template #94
Loading…
Reference in a new issue
No description provided.
Delete branch "tomholford/0x0:th/paste-to-upload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This resolves #60 by providing an example template with a simple script that listens for paste events and POSTs the file blob to the current
location.href
.@ -0,0 +98,4 @@
if (response.ok) {
console.log("File successfully uploaded");
location.pathname = await response.text();
Deployed this today. with location.pathname it appends the whole url to SERVER_NAME and generates a broken link, so this should be location.href instead.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.