publish .pdf of .doc files
When you upload, select Insert.
Then click the square of the inserted, and click om the image on the toolbar, so it will show the absolute path to the file.
Looks some lige this:
http://root-path/bl-content/uploads/pag ... /guide.pdf
Hi JayJay wrote: ↑Tue Aug 06, 2019 8:19 pmYou were heading in the right direction as things changed in B 3.9.X
Basically you need to
1. add a valid mime type of the files you want to upload in validImageTypes array
For pdf files add:Code: Select all
application/pdf
2. add allowed file extension in ALLOWED_IMG_EXTENSION variable, which you have already done judging by the error message
edit, save, upload changes, and let us know if everything works as supposed
I tried the same thing for uploading .gpx-files, but it didn't work.
I added to validImageTypes:
Code: Select all
'application/gpx', 'application/gpx+xml'
Code: Select all
'gpx'
Code: Select all
'application/gpx', 'application/gpx+xml'
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
gpx is a xml based format so try adding also mimetypes for xml files
text/xml
application/xml
not sure if application/octet-stream would also come in handy
This is only an idea, I don't have currently possibilities to test it.
Have you also added image/avif-sequence mime type along with .avifs extension?
-
- Jr. Bludit
- Posts: 8
- Joined: Wed Dec 16, 2020 12:32 pm
try adding all below
'application/gpx+xml';
'application/xml';
'text/xml';
'text/gpx';
'text/gpsxml';
'application/gpsxml';
'application/gpx+xml';
'application/xml';
'text/xml';
'text/gpx';
'text/gpsxml';
'application/gpsxml';