# file-upload-with-preview

🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.

Canonical page: https://www.reposhelf.co.uk/projects/github/johndatserakis/file-upload-with-preview.html

- Project ID: johndatserakis/file-upload-with-preview
- Source: GitHub
- Original project: https://github.com/johndatserakis/file-upload-with-preview
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Not recorded
- Licence: MIT
- Repository availability checked: 2026-11-03T12:07:40.681Z
- Demo page loaded: 2026-11-20T19:21:21.292Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.

> This is a simple frontend utility meant to help the file-upload process on your website.

> It is written in pure JavaScript using TypeScript and has no dependencies. You can check out the live demo here.

- Shows the actual image preview in the case of a single uploaded .jpg, .jpeg, .gif, or .png image. Shows a success-image in the case of an uploaded .pdf file, uploaded video, or other un-renderable file - so the user…
- Shows the image name in the input bar. Shows the count of selected images in the case of multiple selections within the same input.
- Allows the user to clear their upload and clear individual images in the multiple grid
- Framework agnostic - to access the uploaded file/files just use the cachedFileArray \(always will be an array\) property of your FileUploadWithPreview object.
- For every file-group you want just initialize another FileUploadWithPreview object with its own uniqueId - this way you can have multiple file-uploads on the same page. You also can just use a single input designated…

## Author-documented requirements and audience

> 🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/johndatserakis/file-upload-with-preview/blob/develop/README.md

Extraction checked: 2026-10-15T21:46:37.340Z

Last recorded source update: 2024-09-02T20:38:34.000Z

Saved release: v6.1.2 — 2024-09-02T20:38:34.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=johndatserakis%2Ffile-upload-with-preview). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
