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
XUpload - LOVE Upload Pro. Two questions....
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
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:
2. Ok. Then you need to pause upload.cgi. Open upload.cgi, find this line:
and add below
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;
Code: Select all
&lmsg("DONE\n");
Code: Select all
sleep 5;
-
- Posts: 6
- Joined: May 09, 2007 12:56 am
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
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
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
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
and add below
Voila! New file fields will be same size as 1st one.
Thank you! XUpload just became better
Code: Select all
new_element.type = 'file';
Code: Select all
new_element.size = element.size;
Thank you! XUpload just became better
-
- Posts: 6
- Joined: May 09, 2007 12:56 am
Of course I use Firefox!! (Let's start a flamewar)PilgrimX182 wrote:I guess you use FireFox browser...
Glad to have helped!PilgrimX182 wrote:Thank you! XUpload just became better
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