File Manager bug [message #16434] |
Fri, 30 January 2004 10:42 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hello,
The file manager doesn't seem to like zero byte files. It's not possible to upload such a file (Seems to be an issue with boolean 0 (= false) or 0 as figure).
Expected result: Upload the file despite having zero byte as filesize.
Actual result: reload and nothing has changed (no file added)
forum affected: 2.6.0 stable
Olliver
[Updated on: Fri, 30 January 2004 10:43] Report message to a moderator
|
|
|
Re: File Manager bug [message #16440 is a reply to message #16434] |
Fri, 30 January 2004 15:18 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
This has nothing to do with FUDforum. You won't be able to upload 0 byte files with PHP either (outside of FUDforum).
FUDforum Core Developer
|
|
|
Re: File Manager bug [message #16452 is a reply to message #16440] |
Fri, 30 January 2004 17:54 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
I didn't know about that limitation of PHP. How about a facility to create a new zero byte file as a substitute? Just like we'd do with "touch xy.z" on the shell. Then it wouldn't matter if uploading doesn't work.
Olliver
|
|
|
Re: File Manager bug [message #16454 is a reply to message #16452] |
Fri, 30 January 2004 18:05 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
In all honesty I don't see much use in 0 byte files. If you want to create those just add it manually. PHP already has a touch() function so this should not be difficult to implement.
FUDforum Core Developer
|
|
|
Re: File Manager bug [message #16464 is a reply to message #16454] |
Fri, 30 January 2004 21:13 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
This was just a suggestion, nothing more. I know how to implement such things, but that wasn't the issue (else I'd chose a different category and would ask how to perform such a task)
Olliver
[Updated on: Fri, 30 January 2004 21:14] Report message to a moderator
|
|
|
|