Question QuestionsPDF files uploaden in file upload is denied

Questions :question: place them in this section
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

Good evening, when i try to upload a pdf file in the file upload extension, it wil not work.
How can i upload pdf files with this extension?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Gizmo Online
Donator
Donator
Status: Online
User theme: Dark
Posts: 10
Joined: Apr 12th, '24, 02:30
    Windows 10 Firefox

Re: PDF files uploaden in file upload is denied

Post by Gizmo »

Mate not sure if right but you might need to add pdf to this in acp, I never tried it so not sure it will work

Allowed extensions:
Allowed extensions to include, separated by a comma (Example: gif,jpeg,jpg,png)

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

Thanks for your reply but i don't know how

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Gizmo Online
Donator
Donator
Status: Online
User theme: Dark
Posts: 10
Joined: Apr 12th, '24, 02:30
    Windows 10 Firefox

Re: PDF files uploaden in file upload is denied

Post by Gizmo »

ACP > extensions > Image Upload > Configuration, then 3rd down from top you will see allowed extensions you add pdf (Example: gif,jpeg,jpg,png,pdf) in that line then submit, remember I have never tried to add this into mine

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

Thank you very much, i will try it out

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

I only see this (picture), no settings
ext/dmzx/imageupload/img-files/2487/f85 ... 8eeb65.png

Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Gizmo Online
Donator
Donator
Status: Online
User theme: Dark
Posts: 10
Joined: Apr 12th, '24, 02:30
    Windows 10 Firefox

Re: PDF files uploaden in file upload is denied

Post by Gizmo »

That is different to the one I thought you were talking about I think file upload is only for these Allowed extensions 'zip', 'rar'

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

With this extension two years back i was able to upload pdf files
I know there must be a setting to make this possible but now i forget how

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Gizmo Online
Donator
Donator
Status: Online
User theme: Dark
Posts: 10
Joined: Apr 12th, '24, 02:30
    Windows 10 Firefox

Re: PDF files uploaden in file upload is denied

Post by Gizmo »

This is your ext. best to read through the replies

File Upload

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

I have looked in the section posts and pdf file are allowed but not for the file upload extension
Image

Image

Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Gizmo Online
Donator
Donator
Status: Online
User theme: Dark
Posts: 10
Joined: Apr 12th, '24, 02:30
    Windows 10 Firefox

Re: PDF files uploaden in file upload is denied

Post by Gizmo »

Ah ok maybe dm or martin might be able to sort it keep checking site for any update they might have to help you

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

Thank you so much for helping me
i will wait for an answer from them :tumbsyes: :beers:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1159
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: PDF files uploaden in file upload is denied

Post by Sniper_E »

Gizmo wrote: Jan 29th, '25, 01:21 ACP > extensions > Image Upload > Configuration, then 3rd down from top you will see allowed extensions you add pdf (Example: gif,jpeg,jpg,png,pdf) in that line then submit, remember I have never tried to add this into mine
I added pdf like Gismo posted.
Then I changed the pdf from Documents to Images in ACP Posting tab.
Then cleared my cache and uploaded my pdf file with img-upload and submitted.
Then I chose the [url link for the file and posted it... https://www.sniper-e.net/viewtopic.php?p=278#p278
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
Hensyr Wolf
Users
Users
Status: Offline
User theme: Dark
Posts: 25
Joined: Dec 29th, '16, 11:14
    Linux Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

Do I also need to install the image upload extension?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1159
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: PDF files uploaden in file upload is denied

Post by Sniper_E »

Not if you can find the files for file-upload to add the pdf to expectable ext.
I looked at all the file but must have over looked it.
Then you could change the pdf from Documents to Archives. Or maybe it will work as Documents.
I looked in file-upload again and still did not see it. But it has to be there.