Hi @ashfaque,
Yes, it’s absolutely possible to upload multiple files at the same time. Please follow the steps below:
Steps:
Create a Custom App:
Develop a custom app to store your customizations. This app can be deployed on any server. Make sure to write all your code within this custom app for better maintainability.
Add HTML Field for Multi-File Upload:
Add a field of type HTML in your Doctype.
Use custom HTML and CSS within this field to design a multi-file upload interface.(Use JS file to write HTML, CSS, js code for file upload )
Use the /api/method/upload_file API to upload files and insert them into the File doctype.
Allow Folder Selection for File Organization:
If you want to let users upload files to a specific folder:
Provide them with an option to either create a new folder or select an existing one.
This helps in organizing uploaded files more efficiently.
Hi @M.Toseef
I installed the frappe_cookbook app on my site and created two fields in a Doctype — one as Attach and one as Attach Image. But both fields are showing the same behavior, and I don’t see any difference or changes. Could you please guide me on this?
Hi @Vipul_Kumar
Thanks, this solution is helpful. But I have a question — in ERPNext, the Attach and Attach Image field types are used in many places by default. We can’t manually replace all of them with an HTML field, especially when there are so many.
If it were just one or two fields, this approach would be fine. But since these fields are used throughout ERPNext, how can we change their behavior globally? I also want the same multi-file upload feature in those default Attach fields.
Is there a way to override or customize them across the system?