Closed piotrjozwiak closed 5 years ago
I am having the same issue, did you find a solution to this?
Please make sure your theme has a bottom JS block. If it doesn't add this before the </body>
tag:
{% block bottom %}
{{ assets.js('bottom') }}
{% endblock %}
Hi thank you I do have this yes.
Do your files actually get uploaded to user/data/files
? Also can you try with jus a single file by disabling multiple
? Also maybe try changing the name of the file from my-file
to my_file
and also again the attachments reference.
Helo, thanks for your reply. I will try your suggestions and let you know ;)
Hi, I'm having the same issue here. Files uploaded are not sent with the message.
I do have a bottom JS block and my files are not uplaoded in user/data/files
, multiple
is disabled, file name has no -
or _
.
Moreover, the cancel
button do not delete the uploaded file and there is no way to deleted unless refreshing the page. Although this may be another issue.
I did release with a fix where files that were too large were silently being ignored. Perhaps this fix is related to your problem?
I had the same problem. I added the bottom block like was suggested above:
{% block bottom %}
{{ assets.js('bottom') }}
{% endblock %}
Then, I had to add autofocus: false
to the file field (since the field is required but hidden and caused an error in Chrome, when Chrome couldn't autofocus). That allowed to form to upload.
Last, to get it to attach to my form's email output, I had to add a name property
to the file field.
Also if you do all that and it still doesn't work and you have a js error in your console, go to system.yaml
and check to see if turning off JS pipeline and minify fixes your error (js_pipeline: false
and js_minify: false
). That's a catch-all for any JS error, but still it can break things. Then you know that it's something in how grav's combining resources, possibly caused by a syntax error that didn't matter before they were combined.
I figured out what the problem was
you used the wrong quotation marks to close the strings here in those two lines:
content_type: 'text/html’
charset: 'UTF-8’
instead you should use:
content_type: 'text/html'
charset: 'UTF-8'
I hope this helps anyone who has the same problem
Adding the bottom JS block at the end and a few other things ended up only fixing the problem in my dev environment, I still haven't gotten it to work in production. Does anyone have any thoughts?
+1 for the JS pipeline issue.
When the JS pipeline is activated, the following error shows up in the console:
ReferenceError: GravForm is not defined
Same issue with @francoisjacquet when enabling JS pipeline.
+1 for the JS pipeline issue.
Hi guys! I heve problem with attaching files to email message. I have configured this fields:
But still i receive messages without attachment. Also ajax upload does not work and it looks like inactive button. I have to uncheck “display: none” in css properties. Anybody have idea what is a problem?
I am testing this on localhost and also building by heroku on herokuapp.com