This Frappe app introduces a functionality to preview file attachments directly within the Frappe framework. By adding an icon next to each attachment, users can quickly view the content of attached files without downloading them.
- Preview Dialog: Provides a dedicated icon for each attachment that opens a dialog box to preview the file when clicked.
- Draggable and Resizable Dialog: The preview dialog can be stretched, dragged, and moved for better usability.
- Supports Multiple File Types: View various file formats directly in the browser, including:
- Images
- PDFs
- Videos
- Text Files
- JSON Files
- XML Files
- Enhanced User Experience: Saves time by allowing users to preview attachments without opening in a new tab.
Add screenshots here to demonstrate the functionality:

Follow these steps to install and use the app:
- Clone the Repository
bench get-app https://github.com/Z4nzu/frappe-attachment-preview.git
- Install the App
bench --site your-site-name install-app frappe_attachment_preview
- Restart Bench
bench restart
Contributions are welcome! Feel free to open issues or submit pull requests to improve this app.
- Fork the repository.
- Create a feature branch (git checkout -b your-feature).
- Commit your changes (git commit -m "Add your feature").
- Push to the branch (git push origin feature/your-feature).
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.

