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
Re: Mod File Upload
I’ve successfully installed Mod File Upload, although I made a mess to start out with (backups are great aren’t they?) but can’t seem to get it to work.
I already had a directory called “Files”, so I just changed the permissions to all Mod File Upload to access it.
When I try to create an entry for an existing file, I get the message “there was a problem creating the file entry”.
If I try to upload a completely new file, I get the message “there was a problem saving the file data”.
In both cases, the message appears at the top.
By the way, I’m using QuikPik 2.5, but this shouldn’t be the problem – I found the right bits of code to edit in txplib_head.php.
Any ideas on where I’ve gone wrong. I think this is a great mod, adds some extra functionality for sites (as opposed to blogs) – and it integrates nicely in the administration interface.
Thanks,
AS
Offline
Re: Mod File Upload
as, what version of txp are you using?
I have made significant changes to the file upload mod. The mod is more extensive and digs deeper in to the heart of rc3, which means that there are many more steps required to properly apply it. The next release of the mod will have clean url support, a lot of bug fixes, and better support for localization. The messy urls have changed too. Since there is a lot of activity on svn with rc3, i’m holding out on releasing the changes until things slow down on there more.
Offline
Re: Mod File Upload
Sorry I spoke Manfre. Although the physical aspects of uploading etc. are fine I’ve just found that, whilst I have a “File categories” column on the “Organise” page it’s not picking up the categories that already exist so you might want to keep an eye on that. It’s not a problem for me at this time. I only went to that page for something else. Something I should mention is that I’m using QuikPik3 and I usually have to add “files” back into the array manually so it gets picked up in the QuikPik menus. I’ve not had to do anything before to pick up the categories – it usually picks them up automatically – so I’m thinking this is a mod-file problem rather than a QuickPik3 problem but I’ll let you know if I find otherwise. I’m about to hit wilshire|one with a QuikPik problem anyway. :grin:
Last edited by thebombsite (2005-02-25 13:34:18)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline