Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Large files don't work after downloading through TFU.
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1005
Page 1 of 2

Author:  MCA [ 18. Apr 2007, 15:24 ]
Post subject:  Large files don't work after downloading through TFU.

I have a Windows Media file I uploaded to my site using an FTP program. It's 226MBs. If I download the file directly from its link its fine, but when I download it through TFU Windows Media Player can't play it.

Also the TFU shows inconsistent file sizes in its interface during the download:

TFU Screenshot:
Image

Windows Media Error:
Image



Any ideas what the problem is?

Author:  TinyWebGallery [ 18. Apr 2007, 16:16 ]
Post subject: 

it seems the server is only returning half of the file! The numbers below is the internal data the flash gives me. I'll check on my local server if I have this inconsistency too.

/Michael

Author:  TinyWebGallery [ 18. Apr 2007, 16:35 ]
Post subject: 

what is the filesize you get on your server?

I just tested 250 MB without any problems. The file sizes match there too!
I was using Flash 9 on windows.

The flash documentations says only file up to 100MB can be up and downloaded but I already did much more.

Which version of flash are you using?

As a workaround you could use the Javascript function to generate a download link on the fly or you can actually display the url to the file inside the flash.

/Michael

Author:  MCA [ 18. Apr 2007, 16:45 ]
Post subject: 

TinyWebGallery wrote:
what is the filesize you get on your server?

226.5MB (237,535,801 bytes)

I just tested 250 MB without any problems. The file sizes match there too!
I was using Flash 9 on windows.

I tried the download on my windows pc that has the most up to date Flash 9 player on it.

The flash documentations says only file up to 100MB can be up and downloaded but I already did much more.

Which version of flash are you using?

Flash 8 if you are talking the editing program, Flash 9 for the player

As a workaround you could use the Javascript function to generate a download link on the fly or you can actually display the url to the file inside the flash.

How would I show a direct link in the TFU? That might be a good work around. I would love if it would work w/o a workaround though.

/Michael

Author:  TinyWebGallery [ 18. Apr 2007, 16:50 ]
Post subject: 

seems not enough ...

The parameter for the workaround is $show_full_url_for_selected_file.
Read the docu in the config how to use this.

can you send me a pm with the link to the flash? Then I can verify that the problem.
I tested with a zip because there one wrong byte already kills the file.

And what is the size you have downloaded? The 96 MB the flash was showing?

/Michael

Author:  MCA [ 18. Apr 2007, 17:33 ]
Post subject: 

TinyWebGallery wrote:
seems not enough ...

The parameter for the workaround is $show_full_url_for_selected_file.
Read the docu in the config how to use this.

Thanks found it.

can you send me a pm with the link to the flash? Then I can verify that the problem.

Did that before I even read this response. :)

I tested with a zip because there one wrong byte already kills the file.

And what is the size you have downloaded? The 96 MB the flash was showing?

[b]Actually the file shows up as the full 226.5MB file when its finished downloading.

/Michael

Author:  TinyWebGallery [ 18. Apr 2007, 17:54 ]
Post subject: 

the problem is that at this point the only thing I do for downloading is to give the flash the url where to download. There is none of my code involved where I can trigger that (I only display the progress bar).

But it seems I cannot read the filesize on the server properly - the 976563 is my internal default!

Have you set show preview to false? because this triggers to read the filesize from the server - but this is only a display thing ...
set it to true and then check if the size is correct.

I have moved the reading of the filesize
loadPreviewInfos(evt_obj);

before the
if (show_preview == "true") {

in Uploader.as. Then the filesize is read if the preview is disabled too.

I have downloaded the file and it does not work either. Can you maybe retry with a zip file? With this filetype at least I know that it opens without any special codec or something.

And does it work with smaller wmv files?

Nice color of the flash btw ;).

/Michael

Author:  MCA [ 18. Apr 2007, 19:10 ]
Post subject: 

TinyWebGallery wrote:
the problem is that at this point the only thing I do for downloading is to give the flash the url where to download. There is none of my code involved where I can trigger that (I only display the progress bar).

But it seems I cannot read the filesize on the server properly - the 976563 is my internal default!

Have you set show preview to false? because this triggers to read the filesize from the server - but this is only a display thing ...
set it to true and then check if the size is correct.

Setting it to true does show the correct filesize it seems.

I have moved the reading of the filesize
loadPreviewInfos(evt_obj);

before the
if (show_preview == "true") {

in Uploader.as. Then the filesize is read if the preview is disabled too.

Can you email me that file?

I have downloaded the file and it does not work either. Can you maybe retry with a zip file? With this filetype at least I know that it opens without any special codec or something.

I put the wmv file into a zip file and the zip file is corrupt after downloading through TFU as well.

I just uploaded a 4MB zip file using TFU, then downloaded the same file using an FTP program and the file works fine so something is happening during the download process in TFU that is corrupting the file. The upload process seems to be fine.


And does it work with smaller wmv files?

Nope. I just tried a 4MB wmv file and it does the same thing...its the right size, just doesn't work.

Nice color of the flash btw ;).

Thanks. :)

/Michael

Author:  MCA [ 18. Apr 2007, 22:16 ]
Post subject: 

My other problem is the preview isn't showing up...like the actual thumbnail for jpgs and such. I have show preview and show big preview "true" and you see the little loading graphic, but then no preview. Any ideas on this?

Author:  TinyWebGallery [ 18. Apr 2007, 22:20 ]
Post subject: 

do you have a log file? is gd lib installed? you can find out by calling php_info on your server.

simply put
<?php
php_info();
?>
in a php file and call it.

/Michael

Author:  MCA [ 18. Apr 2007, 22:50 ]
Post subject: 

I put that code in a php file and put it on the server and when I go to that page it just shows a blank page...no info on it.

Author:  TinyWebGallery [ 18. Apr 2007, 22:54 ]
Post subject: 

sorry.

phpinfo();

Author:  MCA [ 18. Apr 2007, 23:03 ]
Post subject: 

That did it. I'll PM you the results.

Author:  TinyWebGallery [ 18. Apr 2007, 23:24 ]
Post subject: 

The problem is that this is the php info.

The download of the Flash does not use php at all - it's 100% Flash.
I think the server sends the file in a certain encoding and the client saves it in his one. And if they don't match ...

Have you tried with the .htaccess part I sent you by pm?
Where you can set the encoding for certain file types ...

Right now I don't know what else to try ...

/Michael

Author:  MCA [ 19. Apr 2007, 00:28 ]
Post subject: 

Once my server guy gets back to me I'll see about adding in code to the htaccess file to upload certain files a certain way. Thanks for the help so far.

Page 1 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/