Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 27. Nov 2024, 11:30

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 18. Apr 2007, 15:24 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
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?


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 16:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 16:35 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 16:45 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 16:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 17:33 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 17:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 19:10 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 22:16 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
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?


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 22:20 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 22:50 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
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.


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 22:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
sorry.

phpinfo();


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 23:03 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
That did it. I'll PM you the results.


Top
 Profile  
 
 Post subject:
PostPosted: 18. Apr 2007, 23:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 19. Apr 2007, 00:28 
Offline

Joined: 5. Apr 2007, 23:03
Posts: 16
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy