Page 2 of 2

Re: publish .pdf of .doc files

Posted: Mon Jan 27, 2020 8:58 pm
by jmonroe
This is good information to know. Thanks

Re: publish .pdf of .doc files

Posted: Sat May 23, 2020 12:34 pm
by koljaxyz
Edi wrote: Thu Jan 02, 2020 12:22 am As HTML link (with the absolute path to the file).
And how do I get the absolute path in the backend?

Re: publish .pdf of .doc files

Posted: Sat May 23, 2020 2:08 pm
by lightmat
koljaxyz wrote: Sat May 23, 2020 12:34 pm
Edi wrote: Thu Jan 02, 2020 12:22 am As HTML link (with the absolute path to the file).
And how do I get the absolute path in the backend?
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

Re: publish .pdf of .doc files

Posted: Wed Dec 30, 2020 4:41 pm
by schmocken
Jay wrote: Tue Aug 06, 2019 8:19 pm
Kao wrote: Tue Aug 06, 2019 2:32 pm Any ideas what is going wrong and how to fix it?
You 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 ;)
Hi Jay
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'
to ALLOWED_IMG_EXTENSION

Code: Select all

'gpx'
and to ALLOWED_IMG_MIMETYPES

Code: Select all

'application/gpx', 'application/gpx+xml'
Any idea why this wouldn't work? Is .gpx just not possible to support?

Re: publish .pdf of .doc files

Posted: Wed Dec 30, 2020 10:28 pm
by Edi
schmocken wrote: Wed Dec 30, 2020 4:41 pm I tried the same thing for uploading .gpx-files, but it didn't work.
Could be, also MIME type image/avif does not work:

https://github.com/bludit/bludit/issues/1264

Re: publish .pdf of .doc files

Posted: Sat Jan 02, 2021 3:55 pm
by Jay
schmocken wrote: Wed Dec 30, 2020 4:41 pm Any idea why this wouldn't work? Is .gpx just not possible to support?
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.

Edi wrote: Wed Dec 30, 2020 10:28 pm Could be, also MIME type image/avif does not work:
Have you also added image/avif-sequence mime type along with .avifs extension?

Re: publish .pdf of .doc files

Posted: Mon Jan 04, 2021 10:22 am
by schmocken
Jay wrote: Sat Jan 02, 2021 3:55 pm 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
Thanks for the hints. I tried these but wasn’t successful.

Re: publish .pdf of .doc files

Posted: Mon Jan 04, 2021 1:07 pm
by quicklyweb
try adding all below

'application/gpx+xml';
'application/xml';
'text/xml';
'text/gpx';
'text/gpsxml';
'application/gpsxml';