Topic: upload :: Future functions and updates (Read 2210 times)
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6349
38918 credits Members referred : 374
It's time to use PHP5!
« on: Apr 17, 2006, 12:58:20 AM »
Use this thread to post suggestions about functions for future versions of this class.
Don't use this thread for questions about the current version, please start a new thread if you need help!
Currently this updates are on the development list: (+++ urgent, ++ medium, + low priority) - Replacing special characters (czech, polish, german "umlaut" etc. ) +++ (if you have suggestions then let me know) - add new error reporting variables aka php 5.1
Atari ST fan
Posts: 8
52 credits Members referred : 0
« Reply #1 on: May 09, 2006, 08:09:28 AM »
hi, I would start a new thread for this but not sure how to do it... In PHP 5.1 there is a new error code (7) for file uploads. http://www.php.net/manual/en/features.file-upload.errors.php If the file_upload class experiences this error code it is not picked up by any of the existing options in the error_text method. $error[7] = "Failed to write file to disk."; (or something along those lines could do it). I experienced this error code today. Not sure what my web hosting company have done. Think they may have done something with the permissions to the tmp directory(!?!). Mark P.S. There is also an error (6) code that is not accounted for in the error_text method.
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6349
38918 credits Members referred : 374
It's time to use PHP5!
« Reply #2 on: May 09, 2006, 10:14:47 AM »
Hello,
This question is on the right place. (the button for a new thread is in the upper part of each forum)
I knew about the new messages, but until now they are not implemented in lots of php configurations. I will put them on the developement list.
I you have a problem with the upload and replacement of existing files then post this in a new thread.
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #7 on: Jan 06, 2007, 03:54:01 PM »
Hi. First, thanks for the great script. It took me a little bit but I managed to incorporate upload_class.php into a b2evolution blog so my bloggers could upload video files without having to go through that application's file manager. That's not a good reason to reply to this thread, but it's better to be appreciative before asking for something than the other way around...
I wonder if you've given thought to allowing a file name change to be "human friendly" and then convert it to file-friendly when handling the file? For instance if I wanted to name my file "a day at the beach" your class would see that and convert it to "a_day_at_the_beach".
Not a real biggie - just a suggestion you might want to consider.
Again, thanks for the great script.
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6349
38918 credits Members referred : 374
I wonder if you've given thought to allowing a file name change to be "human friendly" and then convert it to file-friendly when handling the file? For instance if I wanted to name my file "a day at the beach" your class would see that and convert it to "a_day_at_the_beach".
Not a real biggie - just a suggestion you might want to consider.
Again, thanks for the great script.
I thought about that renaming the file in your case could be done without big problems. just use str_rplace()
I though a long time for a general solution but I don't got it working for special characters like then Czech republic or poland