Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Forum: Attaching files

Asked Modified Viewed 2,532 times
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
asked
Veteran Member

In settings zip-files are allowed as attachments. But it does not look as if attaching is actually possible. Other filetypes works fine (as far as I can see)
janmol attached the following file:
forum_zip.gif [No information available / 116 Downloads]
0 replies

12 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Works for me, see screen
Falk attached the following file:
1_15.jpg [No information available / 115 Downloads]
0 replies
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
answered
Veteran Member

Tried to use WINZIP-addon in Word (Zip and share) saving the file with another name ... and then it worked for me too (see attached). So I'm pretty sure, that this problem has something to do with Defender ... and maybe with files created directly in WinZip.

Or maybe with the contents of the zipfile ... tried to make a new ZIP-file in WinZip with a Word-document (first one contained a DB-dump ... a sql-file).

New one worked fine.

But isn't this a problem??
Edited by janmol on 30-04-2017 11:01,
janmol attached the following file:
forum_zip_2.gif [No information available / 117 Downloads]
0 replies
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
answered
Veteran Member

Maybe it was just a matter of size ,,, tried to make a ZIP-file with a dump in sql-format much smaller than the first one. And this time it worked attaching the file in forum. But shouldn't I have gotten an error message, if the file was to big?? I didn't ...
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

I see it
Falk attached the following file:
3_5.jpg [No information available / 109 Downloads]
0 replies
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
answered
Veteran Member

And I don't ... i have removed the install.php and you get a "double" error message ...
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

It makes no differance, double message is intended if you mean there was an error. Check translation if any notices are thrown.
Falk attached the following file:
untitled-6_1.jpg [No information available / 102 Downloads]
0 replies
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
answered
Veteran Member

Checked locale file. Error text is in locale/English/defender,php ... and in locale/Danish/defender.php ...

$locale['df_416'] = "Upload file too large. File must be less than %s.";
$locale['df_416'] = "Din fil er for stor. Filer til upload skal være mindre end %s.";


So mystery is unsolved ...
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Easy. Go to addNotice() function, and add a debug backtrace..

This is the function : https://github.com/PHPFusion/PHPFusion/blob/9.03/includes/notify.inc#L117

Around Line 117:

print_p(debug_print_backtrace());
define('STOP_REDIRECT' , true);
// die(); // have this on if you are very sure you won't have any notice going. So server halts and give you clear results of what triggered it.


Then trigger the notice. Then you get a full print out of the point of executions.

#0 Class A called this function at Line xxx from <---- this executed.
#1 Class B called this function at Line xxx from
#2 Class C called this function at Line xxx from
#3 Function XXX called this function at LIne xxx from .. forum/viewthread.php.

Follow the analysis of #0 -to #xxx to check What and which line triggered that function. Go to that function at that particular file name. Read which locale it is, change that locale. Fixed.
0 replies
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
answered
Veteran Member

I have tried that now. Checked if it worked by writing the wrong password, And that worked just fine. Created a zip-file for testing, Tried to attach it to the post. File wasn't attached ... and no errors shown. Tried doing the same thing in an English post ... same result.

In forum settings I have set max size for attachments to 10 MB ... so this can't be the problem. Tried to change max size to 4 MB. Still no errors or messages.

Installation made with public release ... should I try with some of the changed files from GitHUB???
0 replies
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
answered
Veteran Member

UPDATE: Have upgraded my XAMPP so that it now runs with PHP Version 5.6.30. Now I get the error message when trying to upload.

Der opstod en fejl i forbindelse med din anmodning.
Din fil er for stor. Filer til upload skal være mindre end 1,43MB.


Only one problem left ... I have set the max size for attached files to 10 MB ... changed php.ini and set values for upload_max_filesize and post_max_size ... and the zip file is (only) 6.19 MB. If the limit is set through php-settings maybe it was an idea to limit the possibilities for choosing size for attached files, so that it couldn't go higher than what the system allows ...
Edited by janmol on 01-05-2017 21:48,
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Ok, nice!. Do you know what the version was you tried on before? ( Maybe I need to beef requirements some still ).
Yes, we do have a function in for example file uploader now. It detects the max allowed size and applies it, that one could be used as a max limitor for any size type of settings as well.
0 replies
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
answered
Veteran Member

I have removed the old version. But as far as I remember this had a PHP-Version 5.5 and the new one has a version 5.6.3.

BUT: There's still a problem ... settings value for max size of upload isn't respected as far as I can see
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
J
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet