Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2005-02-25 16:14:52

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

Re: Mod File Upload

Hey Manfre, just have a little feature request. For users uploading large files, it would be great if a little javascript could unhide a layer that says “uploading…” with a little setInterval() to add some animation to show a file is being uploaded.

I’ve actually implemented this on a project I was working on for some document management so if you’d like to see the code or a sample, just let me know! Keep up the excellent work too!

Offline

#77 2005-02-25 16:42:10

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

Re: Mod File Upload

Also, Manfre, another thing, not sure if file upload does this or not, but it would be awesome to include a cleanFilename() to replace bad characters and spaces in filenames with ‘_’ … I have a function that does this I can also pass your way. This would definetly be useful, I have had a few problems with spaces in filenames before.

Offline

#78 2005-02-25 17:24:10

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

Re: Mod File Upload

> thebombsite wrote:

> 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.

I’m not sure what you mean by this. Are there categories listed for files on the Organize tab, but they are not showing up in the “files” tab when you edit a file? Do the categories exist in the database? Can you add and remove categories for files?

> 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.

Add “files” back to what array?

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.

Are there file categories in the database? Do they show up on the “Oraganise” tab? If so, it’s a quickpik problem. I do not use QuickPik, so I am not completely following you.

Offline

#79 2005-02-25 18:24:21

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

Re: Mod File Upload

OK. These are file categories that existed before I upgraded to RC3 and now, although there is a “File categories” column on the “Organise” page it is not listing those existing categories. I haven’t tried to add a new one or anything. Do you want me to try?

I don’t think the QuikPik thing is anything to do with it. It’s just that I have to add ‘file’ into Rob’s code for the new menus else it doesn’t get picked up (just like it has to be added to the original tabs).


Stuart

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

Offline

#80 2005-02-25 21:37:54

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

Re: Mod File Upload

And the dropdown “File category” box on the page where you save the file details is empty so there must be a reason why TXP isn’t picking that information up from the existing database info although it is showing it on the file-list page.


Stuart

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

Offline

#81 2005-02-25 21:52:01

andjules
Member
From: toronto
Registered: 2004-10-20
Posts: 44

Re: Mod File Upload

<em>it would be great if a little javascript could unhide a layer that says “uploading…

Offline

#82 2005-02-26 17:07:21

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

Re: Mod File Upload

<em>> andjules wrote:
I use basecamphq.com’s project management app, and they (seem to) have a slightly simpler approach – unhide a div with a ‘faux progress’ animated .gif (it’s like a horizontal barber shop pole – it just keeps spinning). As with most file upload processes, there is no true indication of progress, but this seems like a nice client-pacifying technique.</em>

I agree. I did some research and there is an actual way to create a file upload with a Perl+PHP script: http://www.raditha.com/php/progress.php

But something similar, with just an onclick show animated div would be awesome. Very simple to add. Works great without an image too using setInterval() to rewrite contents of div:

Uploading.
Uploaindg..
Uploading…
Uploading.

etc

Last edited by m3avrck (2005-02-26 17:08:04)

Offline

#83 2005-02-27 21:48:03

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: Mod File Upload

Manfre

I am using TXP1.0rc1. Is this the problem? I would like to upgrade to rc3 but frankly, I’m not really sure how to do it. It doesn’t look like there is a zipped version.

If this mod only works with rc3 – sounds like it’s got lots of good features – I’m happy to upgrade but I’d really appreciate some ‘plain English’ guidance on it. For example, I read the instructions in Dean’s announcement of rc3 and I think I would have more chance of reading Latin!

Thanks everyone.

Last edited by aslsw66 (2005-02-27 21:59:49)

Offline

#84 2005-03-01 20:54:34

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

Re: Mod File Upload

Manfre – as I don’t need the facility to upload more files at the moment, and as the admin screens aren’t picking up the “categories” anyway, would I be right in thinking that if I remove the mods relating to admin but retain the plugin and additional files, the downloading process would continue to work OK? The reason I ask is that, with the possibility that such a facility will be in the final version “1.0”, I want to keep my mods to the original code to a minimum so as to avoid confusion over the next few weeks.


Stuart

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

Offline

#85 2005-03-01 21:57:14

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

Re: Mod File Upload

@aslsw66, the mod has been tested and documented with rc2. It technically should work with rc1, but there are no docs and I don’t have time to support or test that specifically. If you can do without file uploading for a a short while, things may turn out to be very easy to get that functionality.

@stuart, it should be safe to remove the mod, as long as you leave download.php.

Offline

#86 2005-03-01 22:16:43

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

Re: Mod File Upload

Thanks Manfre. Actually I’m leaving “file” up there as well as I can still monitor things with that in place and it’s separate to the TXP code. It was just the mods in “category” and “prefs” that I wanted removing as both those files are under heavy attack by the devs at the moment especially with all the new localisation files.


Stuart

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

Offline

#87 2005-03-01 22:44:43

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: Mod File Upload

Thanks Manfre for the reply.

I’ve been reading the discussion about rc3 and I assume this is what you’re talking about ie. the next full release will include some sort of file upload functionality.

Just a pity I can’t use your mod+plugin now…

Offline

#88 2005-03-02 06:48:43

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

Re: Mod File Upload

aslsw66, I assure you that it is worth the wait. It runs much smoother and will also be much faster. Also, the plugin tags are changing in a few ways. They have been integrated in to the Txp code base and have been renamed. Their behavior has also changed to be consistent with other Txp tags, and for performance reasons.

Offline

#89 2005-03-02 09:31:48

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

Re: Mod File Upload

Now stop teasing us Manfre!


Stuart

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

Offline

#90 2005-03-02 22:14:30

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: Mod File Upload

will u be able to upload, say, 2 or 3 files, and associate them with an article (a bit like an image) ?

it’s for an mp3 blog… so stripping the metadata outta the file would be tops too

but pls get back to your work now : )

Offline

Board footer

Powered by FluxBB