Skip to content

Z4nzu/frappe-preview-attachment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frappe Attachment Preview

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.

Features

  • 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.

Screenshots

Add screenshots here to demonstrate the functionality: 1

2

3

Installation

Follow these steps to install and use the app:

  1. Clone the Repository
    bench get-app https://github.com/Z4nzu/frappe-attachment-preview.git
  2. Install the App
    bench --site your-site-name install-app frappe_attachment_preview
  3. Restart Bench
    bench restart

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve this app.

  1. Fork the repository.
  2. Create a feature branch (git checkout -b your-feature).
  3. Commit your changes (git commit -m "Add your feature").
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Frappe Attachment Preview

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published