LOVE Upload Pro. Two questions....

XUpload related questions

Moderator: admin

Message
Author
mcoyle1960
Posts: 6
Joined: May 09, 2007 12:56 am

LOVE Upload Pro. Two questions....

#1 Postby mcoyle1960 » May 10, 2007 1:06 am

I've been hacking around upload_form.html and there are two things I'd like to do.

1. Increase the size of the Browse text input box.

I added a size to the following line, but after putting one file in the queue, it reverts to a smaller box:

input id="my_file_element" type="file" size=40 name="file_1"

2. After an upload is complete, the Progress Bar holds for second and stats appear by Stop Upload button. I'd like those stats to display for about 5 seconds before the redirect loads.

Thanks,
Michael

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » May 10, 2007 5:35 am

Thank you! ;)

1. Actually file input width set 100% by CSS. So if you want to increase width of whole form, change width manually in this line:

Code: Select all

FIELDSET {width: 400px;


2. Ok. Then you need to pause upload.cgi. Open upload.cgi, find this line:

Code: Select all

&lmsg("DONE\n");


and add below

Code: Select all

sleep 5;

mcoyle1960
Posts: 6
Joined: May 09, 2007 12:56 am

#3 Postby mcoyle1960 » May 10, 2007 9:10 pm

Cool. Problerm #2 solved with the SLEEP command, but I must not have explained myself clearly on the first one.

The only item I want to make wider it the first form text area. In the top half of picture below, the box is how I want it, but after I add an item (lower part of the picture) the text area input box shrinks.

Thanks for your help.
MIchael


Image

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#4 Postby PilgrimX182 » May 11, 2007 6:34 am

I guess you use FireFox browser...cause in IE & Opera it looks fine. FF don't apply CSS to file field somehow, but I've just made a quick fix: in xupload.js find

Code: Select all

new_element.type = 'file';


and add below

Code: Select all

new_element.size = element.size;


Voila! New file fields will be same size as 1st one.

Thank you! XUpload just became better :)

mcoyle1960
Posts: 6
Joined: May 09, 2007 12:56 am

#5 Postby mcoyle1960 » May 11, 2007 11:40 am

PilgrimX182 wrote:I guess you use FireFox browser...

Of course I use Firefox!! :) (Let's start a flamewar)


PilgrimX182 wrote:Thank you! XUpload just became better

Glad to have helped!

I know your program isn't OSS, but because you offer the 'source code' any user can hack around and either find bugs or make suggestions that eventually make the code better. Everyone benefits!

Thanks again. Your script gives my little (soon to be open) website a professional look.

Michael


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 1 guest