Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Mod File Upload
That was an oversight on my part. I’ll add a tag to the plugin. It’ll be done within a few days. Backlogged with work.
Offline
Re: Mod File Upload
Thanks. Don’t worry about the time.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Mod File Upload
Still back logged, but I was motivated to get this done.
Offline
Re: Mod File Upload
Motivated?? Thanks for this. All works fine. This is way more than I asked for but I can see the point of doing it this way. You know, there are lots of excellent plug-ins here but this one is now plain perfect!!
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#65 2005-02-06 09:20:49
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: Mod File Upload
I get two warnings.
The first one comes when adding already uploaded files to the list. It adds file to the list but it cant change its access permissions from 644 to 755.
——————-
Warning: chmod(): Operation not permitted in /usr/home/asiakkaat/b/buriedshovel.com/public_html/test/textpattern/include/txp_file.php on line 271
——————-
The second one comes when the last file is deleted.
——————-
Warning: Invalid argument su
pplied for foreach() in /usr/home/asiakkaat/b/buriedshovel.com/public_html/test/textpattern/include/txp_file.php on line 518
——————-
Last edited by heikki74 (2005-02-06 09:22:18)
Offline
Re: Mod File Upload
> heikki74 wrote:
> I get two warnings.
>
> The first one comes when adding already uploaded files to the list. It > adds file to the list but it cant change its access permissions from
> 644 to 755.
>
This problem is related to the httpd user not being the user who owns the file. I silenced the warning in v1.2.
> The second one comes when the last file is deleted.
I added code to properly check the output of glob() before looping through it, since glob() returns FALSE when nothing is found.
BTW, v1.2 is posted on the same download link.
Offline
Re: Mod File Upload
Looks like there is an error in the install doc:
FILE:textpattern/include/txp_prefs.php:line 103
That code doesn’t exist there, I found it farther up on line 93.
Maybe a typo? Seems to be working for me, no problems at all.
Offline
Re: Mod File Upload
Thanks for pointing that out. Updated the document. It happens, which is the reason I include enough context.
Offline
Re: Mod File Upload
As a newbie to both TXP and PHP, does anyone know of any step-by-step guides to setting up mod_file_upload with TXPrc1 ? Thanks for any help you can give me on this.
Offline
Re: Mod File Upload
Rumor has it that file uploads will be supported out of the box for 1.0, and this mod will be the frame of reference.
Offline
Re: Mod File Upload
As my downloads are fairly critical and there’s no file upload in RC3 I’ve gone and redone the mods and it seems to be working fine so your plugin appears to support RC3.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Mod File Upload
Thanks, good to know.
I am in the works of added a cleaner mod for file uploads. It will be a more thorough mod this time, and I am in the process of adding clean url support.
Last edited by Manfre (2005-02-24 07:07:44)
Offline