Skip to content

Instantly share code, notes, and snippets.

@Z4nzu
Last active December 6, 2024 15:09
Show Gist options
  • Select an option

  • Save Z4nzu/ff0d4c91214688cba4ac4e8368492436 to your computer and use it in GitHub Desktop.

Select an option

Save Z4nzu/ff0d4c91214688cba4ac4e8368492436 to your computer and use it in GitHub Desktop.
Frappe Attachment Preview Legal Documents
# Frappe Attachment Preview
This Frappe app introduces a functionality to preview file attachments directly within the Frappe framework. By adding an **eye 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.
## Installation
Follow these steps to install and use the app:
1. **Clone the Repository**
```bash
bench get-app https://github.com/Z4nzu/frappe-attachment-preview.git
2. **Install the App**
```bash
bench --site your-site-name install-app frappe_attachment_preview
```
3. **Restart Bench**
```bash
bench restart
```
# Privacy Policy for Frappe Attachment Preview
Effective Date: 01/12/2024
At Frappe Attachment Preview, we value and respect your privacy. This Privacy Policy explains how we collect, use, and protect your personal information when you use our app.
## 1. Information We Collect
We do not collect any personal data while using Frappe Attachment Preview. The app primarily processes attachment data such as images, PDFs, videos, and text-based files like JSON and XML for preview purposes.
## 2. Data Usage
We do not store or share your personal information. Any data processed through the app is used solely for the purpose of previewing attachments and is not stored or shared with third parties.
## 3. Cookies
We do not use cookies or tracking technologies within the app.
## 4. Third-Party Services
Frappe Attachment Preview may use third-party services for features such as cloud storage or analytics. However, these services do not collect personally identifiable information from users.
## 5. Data Security
We take reasonable measures to protect the information processed by the app, but please understand that no method of transmission over the internet is 100% secure.
## 6. Changes to the Privacy Policy
We may update this Privacy Policy from time to time. Any changes will be posted here with an updated effective date.
## 7. Contact
If you have any questions about this Privacy Policy, please contact us at hardiktech7@gmail.com.
---
By using Frappe Attachment Preview, you consent to the practices outlined in this Privacy Policy.
# Support for Frappe Attachment Preview
Welcome to the support page for Frappe Attachment Preview! If you encounter any issues or have questions, please feel free to reach out to us.
## Common Issues
- **Attachment Preview Not Working**: If certain file types do not preview as expected, please check our Supported File Types.
- **Dialog Not Resizing**: Ensure your browser is up to date and try refreshing the page.
- **Other Issues**: If you experience other problems, please contact us below.
## Contact Support
You can reach out to me by emailing at: hardiktech7@gmail.com
## FAQs
- **What file types can I preview?**
Currently, the app supports images, PDFs, videos, JSON, and XML files. We plan to support DOC and Excel files in the future.
- **How do I use the preview dialog?**
Simply click on the attachment icon to open the preview. You can resize and move the dialog for your convenience.
## Submit Feedback
We welcome feedback to improve the app. Please send any suggestions or issues to: hardiktech7@gmail.com.
---
Thank you for using Frappe Attachment Preview. We're here to help!
# Terms of Service for Frappe Attachment Preview
Effective Date: 01/12/2024
Thank you for using Frappe Attachment Preview! By accessing or using our app, you agree to comply with and be bound by the following terms and conditions. If you do not agree to these terms, please do not use the app.
## 1. Use of Service
Frappe Attachment Preview is provided to enhance your experience within the Frappe framework. You are granted a non-exclusive, non-transferable license to use the app for its intended purpose, subject to these Terms.
## 2. Supported File Types
Currently, Frappe Attachment Preview supports the following file types for preview:
- Images
- PDFs
- Videos
- Text Files (JSON, XML)
Other file types like DOC and Excel may not be previewed at this time, but we plan to support these file types in future updates.
## 3. Restrictions
- You may not use the app for any unlawful purpose.
- You may not reverse-engineer, decompile, or disassemble the app.
- You may not distribute or sell the app to third parties without prior consent.
## 4. Updates
We reserve the right to modify or discontinue the service at any time. Any changes will be communicated via app updates or website announcements.
## 5. Privacy
Your use of the app is also governed by our Privacy Policy. Please refer to the Privacy Policy for more information on how your data is handled.
## 6. Limitation of Liability
We are not liable for any direct or indirect damages resulting from the use or inability to use the app, including but not limited to data loss or software malfunction.
## 7. Governing Law
These terms shall be governed by the laws of Gujarat, India, without regard to its conflict of law principles.
## 8. Contact
If you have any questions about these Terms of Service, please contact us at hardiktech7@gmail.com.
---
By using Frappe Attachment Preview, you acknowledge that you have read and understood these terms and agree to be bound by them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment