upload progress bar

Sep 4, 2008 at 6:13 AM

I've just started testing uploading to amazon its working really well but the progress bar jumps straight to 99%(for small files 5Mb) and stays there basically until completion of the upload. Is this an issue with the uploader or can I change something in my code to fix this? For larger files (80Mb ) it increases very quickly until it reaches 99% and then does the same thing.
Any help would be much appreciated.



@ Page Language="C#" AutoEventWireup="true" CodeBehind="flashSend.aspx.cs" Inherits="WebApplication1.flashSend" %>
@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>
@ Register TagPrefix="fjxau" Namespace="com.flajaxian.AWS" Assembly="com.flajaxian.AmazonUploader" %>
@ Import Namespace="System.IO" %>




DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
html xmlns="http://www.w3.org/1999/xhtml" >
head runat="server">
        <title>Untitled Page</title>
        <form id="form1" runat="server">
SCRIPT language="C#" runat="server">
                    protected void FileNameDetermening(object sender, FileNameDetermeningEventArgs args){
                        args.FileName =
Path.GetFileNameWithoutExtension(args.FileName) + "_UPL_" + Path.GetExtension(args.FileName);
                <fjx:FileUploader ID="FileUploader1" runat="server" >
                            BucketName="bucket name"
                            <fjxau:AccessControl URI="http://acs.amazonaws.com/groups/global/AllUsers" Permission="READ" />


Sep 4, 2008 at 7:11 AM
You will see this only on localhost. This is because the bandwith Client -> Web Server is much bigger then Web Server -> Amazon. In real application when those are more or less equal you won't see this. The flash player can only track Client -> Web Server transfer.
Sep 4, 2008 at 7:32 AM
Thanks for that, I have another question tho if you dont mind. My application really needs a callback function so it can handle a failed upload, i see that if an upload fails the progress bar corrextly shows this. Is there some way i can tap into this and call my own error handling method?
Thanks again
Sep 4, 2008 at 12:36 PM

<script language="C#" runat="server">
protected void FileReceived(Object sender, FileReceivedEventArgs e){

<fjx:FileUploader ID="FileUploader1" OnFileReceived="FileReceived" runat="server" >