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

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

Earlier (a year ago) I also had the extension file upload and I could upload pdf files in a message but had to change or add something in a list of file extensions, only I don't remember how to do that. But I didn't have the extension image upload then either.

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

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6484
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: PDF files uploaden in file upload is denied

Post by dmzx »

\ext\dmzx\fileupload\controller\fileupload.php
Find This may be a partial find and not the whole line

Code: Select all

protected $allowed_extensions = array(
		'zip',
		'rar',
		'mp3',
		'wmv',
	);
Replace with Replace the preceding lines with the following

Code: Select all

protected $allowed_extensions = array(
		'zip',
		'rar',
		'mp3',
		'wmv',
		'pdf',
	);

[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: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: PDF files uploaden in file upload is denied

Post by Sniper_E »

Man, I looked in that file twice and couldn't find those lines. And there they are. That's not like me :wtf:

And your pdf in acp posting can remain as Documents. It works for great.
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

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5119
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: PDF files uploaden in file upload is denied

Post by martin »

Or wait for the new version to be released wink wink.
Screenshot from 2025-01-29 15-20-22.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Image

[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 »

dmzx wrote: Jan 29th, '25, 08:12
\ext\dmzx\fileupload\controller\fileupload.php
Find This may be a partial find and not the whole line

Code: Select all

protected $allowed_extensions = array(
		'zip',
		'rar',
		'mp3',
		'wmv',
	);
Replace with Replace the preceding lines with the following

Code: Select all

protected $allowed_extensions = array(
		'zip',
		'rar',
		'mp3',
		'wmv',
		'pdf',
	);
Good evening, Can you also tell me where I can find these?

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

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5119
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: PDF files uploaden in file upload is denied

Post by martin »

Your answer is in your own post \ext\dmzx\fileupload\controller\fileupload.php

[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 »

martin wrote: Jan 29th, '25, 21:43 Your answer is in your own post \ext\dmzx\fileupload\controller\fileupload.php
Thank you very much, i should go to the file with filezilla.

[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 all for the help you provided.
I have now managed to post pdf manuals on my forum in the messages.
I do wonder about one thing: I used to have a nice little frame in yellow that members could click on to download the pdf.
Now it is just a link, can I get that nice little frame back?

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

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5119
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: PDF files uploaden in file upload is denied

Post by martin »

As i posted above there is a new version being tested right now.

[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 »

martin wrote: Jan 29th, '25, 22:31 As i posted above there is a new version being tested right now.
Okay thank you.
When the new version is out can I just upgrade or do I have to reinstall the new extension?

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

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6484
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: PDF files uploaden in file upload is denied

Post by dmzx »

Hensyr Wolf wrote: Jan 29th, '25, 22:36
martin wrote: Jan 29th, '25, 22:31 As i posted above there is a new version being tested right now.
Okay thank you.
When the new version is out can I just upgrade or do I have to reinstall the new extension?
You can upgrade, it will be version 1.0.6

[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
    Ubuntu Firefox

Re: PDF files uploaden in file upload is denied

Post by Hensyr Wolf »

Is there a new release of the File Upload extension yet?

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

ivailo95
Users
Users
Status: Offline
User theme: Dark
Posts: 919
Joined: Feb 2nd, '18, 11:04
    Windows 10 Opera

Re: PDF files uploaden in file upload is denied

Post by ivailo95 »

Never mind :lol:
Last edited by ivailo95 on Apr 30th, '25, 17:18, edited 1 time in total.
Feed like a disease
And bring them to their knees
They'll pay for their deceit

[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: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: PDF files uploaden in file upload is denied

Post by Sniper_E »

Hensyr Wolf wrote: Apr 26th, '25, 07:03 Is there a new release of the File Upload extension yet?
I have not seen the release of the updated File Upload yet. Look for version 1.0.6 when dm releases it.