Skip to content
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

Add a new field named basic-file to allow you to use a basic solution for uploading files #602

Open
maofree opened this issue Nov 16, 2024 · 0 comments

Comments

@maofree
Copy link

maofree commented Nov 16, 2024

Hi

the file type solution as some problems:

  • in file.html.twig file there are some js files which are loaded if there is a file type field in the form
  • image data is loaded into the body of the email, including the file field label. All this data is not important in managing a message, usually the uploaded files must be attached to the email, technical data is not important, in fact it distracts from the message sent
  • the jquery file is loaded by force, then two other files and one has a very large size greater than 600Kb. in total with these files 1Mb of code are loaded just for the file field.
    This reduces the loading of the pages and if the form is inserted in all the pages of the site it becomes a problem.

now I no longer use jquery and therefore having to do it just for this thing I don't like

I've been trying for 3 hours, I've done a lot of tests, but the form only sends the files if you use the dz-preview section
You can also remove the javascript files but then it doesn't work, for sending the files the input field of type file is not considered, the js file is used to do it, then the form.php file expects various data on the files

I would like the files to be attached to the emails without the image data being reported in the body of the email, including the label which is not important

the "form" plugin is not able to handle a normal "file" type field and attach files to emails in a simple way
the only solution is to create a new basic-file type field, but it must be done in the php files too

1

would it be possible to add a new basic-file field, which shows in the form the classic field where you can upload files and then these are inserted only as attachments to the emails sent?

it would be a solution appreciated by everyone

thanks
bye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant