Module: Store Files on Disk
Posted by Maurice Makaay
Re: Module: Store Files on Disk June 11, 2020 10:12AM |
Admin Registered: 18 years ago Posts: 566 |
Re: Module: Store Files on Disk June 11, 2020 04:24PM |
Registered: 18 years ago Posts: 131 |
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.
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]
> 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,470Each 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 |
Admin Registered: 18 years ago Posts: 566 |
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 |
Registered: 18 years ago Posts: 131 |
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 |
Registered: 18 years ago Posts: 131 |
Re: Module: Store Files on Disk June 12, 2020 09:00AM |
Admin Registered: 18 years ago Posts: 566 |
Re: Module: Store Files on Disk June 12, 2020 09:04PM |
Registered: 18 years ago Posts: 131 |
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]
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.