
Public
Like
copy-upload-text
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v6View latest version
A simple web app that lets you upload any text file and quickly copy its contents to your clipboard.
- π€ Easy Upload: Drag and drop or click to select any text file
- π One-Click Copy: Copy the entire file contents to your clipboard instantly
- π Live Preview: See the file contents before copying
- π± Responsive Design: Works great on desktop and mobile devices
- π¨ Beautiful UI: Clean, modern interface with smooth animations
- Click the "Choose File" button or drag and drop a file
- View the file contents in the preview area
- Click "π Copy to Clipboard" to copy the text
- You'll see a "β Copied!" confirmation message
- Quickly copy configuration files
- Share log file contents
- Copy code snippets from files
- Extract text from documents
- Transfer file contents between applications
- React 18 - UI framework
- TypeScript - Type safety
- Val Town - Serverless hosting
- Server-Side Rendering - Fast initial page load with client-side hydration
This val uses:
- Server-side rendering with
renderToStringfor the initial HTML - Client-side hydration with React for interactivity
- The Clipboard API for copying text
- The FileReader API for reading file contents
Visit the app at: https://copy-file.val.run/