-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQ]: Restrict Uploaded File Name #9
Comments
Naming is crucial for all users, big or small. Thank you. |
@robert1112 Thank you buddy for reaching out.. Let me get things straight.. You are suggesting a feature that only allows uploading files that matches a specific filename or regex? Am I right? If that's what you are suggesting, then I how it can be done without causing problems and then implement it 😁 I will update you on the status of this feature.. Best regards |
@kid1194 That is AWESOME. I am glad you have the idea already and willing to implement it. It will be a popular addon to your plugin anyway. Look forward to it. |
@robert1112 I have implemented the feature and updated the plugin.. Can you please check if it's working or not.. And can you please also check if the plugin fully functional in web forms.. Best regards.. |
@kid1194 Awesome. I was checking inbox from time to time to see if any progress. Until I check by myself. I will update you soon. Thank you for awesome support. |
@robert1112 I will be patiently waiting for your update 😁 |
Hi @kid1194
Thank you so much. |
I read it on the other post. DocField-better_attach_options is created but when I click in. There is the error on save. |
@robert1112 Thank you bro for reporting this.. BTW, you are not supposed to edit it directly.. Just edit the Attach or Attach Image field and you will find Better Attach Options bellow the default Options field.. Best regards.. |
@kid1194 Hi You probably miss this reply. I cannot find Better Attach Options. But I can see the custom field, though. Also, with the update, is it possible to use {field name} like doc ID in the naming rules? Here is the case. The uploaded files should contain the doc ID and ends with a fixed word. So the file name will be LEAD-203920A. "A" means Approved. Thank you so much for your support. |
@robert1112 Sorry for the late reply..
I have fixed this in the latest update. I forgot to set the module for the custom field..
Sadly no because the file name restriction is being processed in JavaScript and not in Python so such thing is not possible at the moment.. Based on your autoname, the file name regexp that you can use is |
@robert1112 Hey bro.. Did the solution I suggested work for you or not? Best regards.. |
@kid1194 Hi Thanks for the update. I am out of town for a vacation but I will test it soon and feedback here for sure. Thanks for such awesome feature. |
@robert1112 Take your time bro and enjoy your vacation 😁.. |
@kid1194 Sorry for my late reply. I still have problem finding Better Attach Options in attach or attach image fields. https://cln.sh/Khxl9xlQ Here is the version: Thank you very much. |
@robert1112 Ok, please do the following..
If the field isn't found then create a new custom field with the following values:
Best regards.. |
Hi @kid1194 |
@robert1112 Apparently frappe doesn't allow adding custom fields to the core This will cause a problem for web forms which will make the plugin doesn't work except in I will make several changes and get back to you.. Thanks a lot buddy for your help.. Best regards.. |
@robert1112 Please check this comment #11 (comment). Best regards.. |
Is your feature request related to a problem? Please describe.
It is better to have predefined file name for better search in future.
Describe the solution you'd like
Describe alternatives you've considered
No
Additional context
No
The text was updated successfully, but these errors were encountered: