Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Mod File Upload

#61 2005-02-04 13:53:46

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

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

#62 2005-02-04 23:20:02

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Mod File Upload

Thanks. Don’t worry about the time.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#63 2005-02-05 05:49:20

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Mod File Upload

Plugin mem_file version 0.2

Still back logged, but I was motivated to get this done.

Offline

#64 2005-02-05 10:46:44

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#66 2005-02-09 16:50:27

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

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

#67 2005-02-15 17:31:21

m3avrck
New Member
From: Arlington, VA
Registered: 2005-02-03
Posts: 9
Website

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

#68 2005-02-16 01:50:16

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Mod File Upload

Thanks for pointing that out. Updated the document. It happens, which is the reason I include enough context.

Offline

#69 2005-02-16 11:30:56

Whitingx
Member
Registered: 2005-02-04
Posts: 11
Website

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

#70 2005-02-23 15:34:45

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

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

#71 2005-02-24 00:18:47

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#72 2005-02-24 02:10:13

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

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

  1. Index
  2. » Archives
  3. » Mod File Upload

Board footer

Powered by FluxBB