Firefox PHP

Module: Store Files on Disk

Posted by Maurice Makaay 
Re: Module: Store Files on Disk
June 11, 2020 10:12AM
Tidy off.
mime type has to be correct on the upload, check the header.
Be sure time zone is set correctly. (PHP and server)
Try a small file 20K, see if it works.
Re: Module: Store Files on Disk
June 11, 2020 04:24PM
Thanks Scott.

> Try a small file 20K, see if it works.
Here's what I tried: uploading 5 files of different sizes, from 10KB to 200KB.
local	server	ratio
200102	38217	5,236
153987	29172	5,279
100429	19005	5,284
50442	9684	5,209
20179	3853	5,237
10032	1834	5,470
Each time the size is smaller, and I calculated the ratio: always 5 something. Could this be a clue?

If I run the Linux command "file -i" on the files, I get:
1. For the original files: image/jpeg; charset=binary. And of course I can display them on my computer.
2. For the files stored on the server: application/octet-stream; charset=binary. And I can not open them with any software (Gimp, etc). It seems to be a binary garbage. The first chars are the same in each, but not the same than for a JPEG file.

For your other suggestions:
> Tidy off.
In the Phorum admin I checked everything, did the sanity check, database integrity, everything.
Is that what you meant?

> mime type has to be correct on the upload, check the header.
How do I do that? Where?

> Be sure time zone is set correctly. (PHP and server)
In php.ini this parameter was commented. I set it the same than the server. Still the same pb.

Thanks for your help, this is driving me crazy.

Cactus : [www.cactuspro.com]
Re: Module: Store Files on Disk
June 11, 2020 11:57PM
Quote

For your other suggestions:
> Tidy off.
In the Phorum admin I checked everything, did the sanity check, database integrity, everything.
Is that what you meant?

Tidy is a Mod in the module directory.
There is also a php extension tidy, which may be disabled or enabled.

Here is a whole thread on broken images [www.phorum.org]

I need to dig around for how to see the header info.
Re: Module: Store Files on Disk
June 12, 2020 02:40AM
Quote
Scott Finegan
Tidy is a Mod in the module directory.
There is also a php extension tidy, which may be disabled or enabled.

They are both Off.

Cactus : [www.cactuspro.com]
Re: Module: Store Files on Disk
June 12, 2020 02:43AM
Quote
Scott Finegan
Here is a whole thread on broken images [www.phorum.org]

Thanks. I'll try turning off modules to see if there's a conflict.

Cactus : [www.cactuspro.com]
Re: Module: Store Files on Disk
June 12, 2020 09:00AM
If you turn the Store Files on Disk mod = OFF

Are the files uploaded correctly?
Re: Module: Store Files on Disk
June 12, 2020 09:04PM
It works now!
Not sure why, here's what I did:
1. Removed all modules which were not used, from the mods directory (all modules which were at Off).
2. Turned the module Off
3. Turned the module back at On.

Thanks for your help!

Cactus : [www.cactuspro.com]
Sorry, only registered users may post in this forum.

Click here to login