Flajaxian file uploader issue in showing images

Jul 15, 2009 at 6:23 AM

Using File_Received event to save  multiple files in database and  then showing those saved files in datalist control in .NET 2.0.

  The problem is that , File_Received event fires correctly and  entries in database are made and image files saved on server and  then  the datalist control gets bound ( this is fired only once when last file has been uploaded using javascript) but shows less  number  of images than  selected . Could this be a problem due to cookies ,cache or something after incorporating the  Flajaxian uploader

I have included the code in Global.asax as specified in the doc and using Flash player 10 .  Please if you can provide any hint as to what might be failing..


this is the .aspx code (which can be the source of problem as i think my server side code functions correctly)


<script type="text/javascript" language="javascript">
    function FileStateChanged(uploader, file, httpStatus, isLast)
      Flajaxian.fileStateChanged(uploader, file, httpStatus, isLast);

     function  callfromiframe()




<fjx:FileUploader ID="FileUploader1"  MaxNumberFiles="5" MaxFileSize="1555000000"   JsFunc_FileStateChanged="FileStateChanged"   runat="server"  AllowedFileTypes="Images:: ||*.jpg;*.jpeg;*.gif;*.png||:*.jpg;*.jpeg;*.gif;*.png"  OnFileReceived="FileUploader1_FileReceived" >


Jul 15, 2009 at 10:01 AM

If the control is within an update panel and you call __doPostBack('linkbindimagelist',''); you reset the JavaScript state. I would use a different client - server interaction model.