Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2008-08-19 17:37:51

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: EBL_Upload

TheEric wrote:

Mid to Late September, most likely…. I know ….

Cool. Looking forward to it. : )

Offline

#77 2008-08-19 18:13:33

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: EBL_Upload

Not sure if this feature has already been requested – but I’d love to be able to set the image title/category/alt attributes when uploading. Now, we can upload a lot of images and set the image categories (which is great), but it’s a bit of a pain to have to then edit each image to set the title or alt attribute.

Last edited by jstubbs (2008-08-19 19:16:22)

Offline

#78 2008-08-19 18:35:22

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: EBL_Upload

hmmm. js anyone?

Offline

#79 2008-08-19 18:44:51

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 603
Website

Re: EBL_Upload

Mr. Dale : The latest version is already using JS and only uses the SWF for the multiple select / upload. Everything else is pure HTML/JS.

Offline

#80 2008-08-19 20:59:06

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: EBL_Upload

ok, sounds good. Sorry to be the Flash police ;)

Offline

#81 2008-08-20 03:47:56

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

Re: EBL_Upload

not a problem with the plugin really – but I had issues when using on a site that had .htaccess password protection

Offline

#82 2008-08-21 15:18:46

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 603
Website

Re: EBL_Upload

Ok. So I’ve rewritten the core routine, and it’s now 1. Fully Object Oriented 2. CS3 3. Makes use of the Flash 10 fix. Progressing so far.

Offline

#83 2008-09-04 02:09:13

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 603
Website

Re: EBL_Upload

Ok. Here are the details as it relates to Flash Player 10 and the browse() method.

Adobe has decided that external javascript invoked calls that invoke the filereference()/filereferencelist() are a security risk, and thus, this windows file-browse function only works if somewhere above it on the call stack is a user event handler, such as MouseEvent.MOUSE_UP. The simple translation – it must be triggered by a FLASH button. This whole issue sort of defeats the entire purpose for the most recent rewrite, and it does, almost. Everything aside from the browse-file button can be invoked by external javascript methods, with the button obviously being the sole exception.

I found a hackish method work-around that gets past this quite well. With a little CSS positioning and flash opacity, I can create an invisible “layer” above the browse-text that mimics a flash button, without actually looking like a flash button. Genius, I think…

The drawback to this now, is file weight. The SWF prior to this fix was a lean and trim 3k. With the fix in place, it quadruples in size to about 12k — Just for a silly invisible button! Sillyness, eh? Still, that’s over a 78k savings over the previous version.

Comments?

Last edited by TheEric (2008-09-04 02:16:25)

Offline

#84 2008-09-04 13:34:51

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: EBL_Upload

Eric,

I don’t know that anyone will be bummed about 12k vs. 3k.
Like you said – you’re still trimming 78k from the previous version.

Look out for hurricanes – they all seem to be heading our way.

Looking forward to the release.

)

Offline

#85 2008-09-04 19:19:01

freischwimmen
Member
From: Cologne
Registered: 2007-05-28
Posts: 71
Website

Re: EBL_Upload

i think it would be great to have a multifile upload plugin that actually works, 12k is still VERY acceptable imo. Sounds great!

Offline

#86 2008-09-04 19:41:24

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: EBL_Upload

Eric, not related to your post above, but is there any chance that this feature request might be possible?

Offline

#87 2008-09-04 23:56:59

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 603
Website

Re: EBL_Upload

@jstubbs – the current version already does this in a limited fashion. The category can be set prior to uploading, and the alt & image title is set according to the filename. For the next version, I’m debating various methods to do this.

Offline

#88 2008-09-09 14:00:03

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 603
Website

Re: EBL_Upload

Today I added a new feature that allows users to remove individual files from the upload queue prior to uploading. Previously in the older version, this wasn’t possible and the user would have to clear the entire list and requeue the files. Now, they just click on the file they want to remove, and POOF it’s gone. Here’s a snippet of this new code:

public function removefile (file:Object) 
{
	trace("removefiles [" + file + "]");
	var totalqueued:Number = this.file_queue.length; trace(totalqueued);

for (var i:Number = 0; i < totalqueued; i++) { if (this.file_queue[i].name == file) { trace(“remove1”); this.file_queue.splice(i,1); } else { trace(“not found”); } }
}

Last edited by TheEric (2008-09-09 14:39:49)

Offline

#89 2008-09-15 12:42:49

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

Re: EBL_Upload

Anyone on Textdrive/Joyent implemented this plugin successfully?
I keep getting error #2 … as reported in about page 3 or 4 of the thread – tried that workaround (htaccess in the root) but no go

Offline

#90 2008-09-15 14:45:47

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: EBL_Upload

Did you also try generating a new serial no. according to Eric’s post? That did the trick for me on Textdrive.

Offline

Board footer

Powered by FluxBB