You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Scroll down to the form fields area and create an **Attach** or **Attach Image** field or edit an existing custom field
135
-
4. In the **options** property of the field, add a JSON object of the customizations you want. Example:
134
+
3. Scroll down to the form fields area
135
+
4. Create an **Attach** or **Attach Image** field or edit an existing custom field
136
+
5. Inside the field's custom property, **Better Attach Options**, add a JSON object of the customizations you want. Example:
136
137
```
137
138
{"allowed_file_types": ["jpg", "png", "gif"]}
138
139
```
139
140
140
-
ℹ️ **Note: You can't modify the original fields of a doctype, so create a new field or clone and modify the entire doctype.**
141
+
ℹ️ **Notes**
142
+
1.**You can't modify the original fields of a doctype, so create a new field or clone and modify the entire doctype.**
143
+
2.**The plugin creates a custom field property called Better Attach Options to protect the plugin customizations from any modification and to make the plugin work in web forms.**
141
144
142
145
---
143
146
@@ -150,7 +153,7 @@ bench restart
150
153
|`allowed_file_types`| Array of allowed file types (mimes) or extensions to upload.<br/><br/>- Example: `["image/*", "video/*", ".pdf", ".doc"]`<br/>- Default: `null` or `["image/*"]`|
151
154
|`max_number_of_files`| Maximum number of files allowed to be uploaded if multiple upload is allowed.<br/><br/>⚠️ *(Bypassing the maximum attachments of doctype might not work)*<br/>- Example: `4`<br/>- Default: `Value of maximum attachments set for the doctype`|
152
155
|`crop_image_aspect_ratio`| Crop aspect ratio for images (Frappe >= v14.0.0).<br/><br/>- Example: `1` or `16/9` or `4/3`<br/>- Default: `null`|
153
-
|`as_public`| Force uploads to be saved in public folder.<br/><br/>- Default: `false`|
156
+
|`as_public`| Force uploads to be saved in public folder by default.<br/><br/>- Default: `false`|
154
157
|`allow_reload`| Allow reloading attachments (Frappe >= v13.0.0).<br>ℹ️ Affect the visibility of the reload button.ℹ️<br/><br/>- Default: `true`|
155
158
|`allow_remove`| Allow removing and clearing attachments.<br>ℹ️ Affect the visibility of the remove and clear buttons.ℹ️<br/><br/>- Default: `true`|
0 commit comments