This is a migrated thread and some comments may be shown as answers.

Multiple file selection is not working

2 Answers 130 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
sathish venkat
Top achievements
Rank 2
sathish venkat asked on 20 Aug 2010, 01:36 PM
Hi,

     i am using asyncUpload to upload multiple images to target folder.i am not able to select multiple images at a time.
please verify the code below and help me to solve this issue.

<

 

telerik:RadAsyncUpload runat="server" TemporaryFileExpiration="01:00:00" ID="RadAsyncUpload1"

 

 

MultipleFileSelection="Automatic"

 

 

ControlObjectsVisibility="RemoveButtons" InputSize="45">

 

 

</telerik:RadAsyncUpload>

 


 

 

Protected Sub RadAsyncUpload1_FileUploaded(ByVal sender As Object, ByVal e As Telerik.Web.UI.FileUploadedEventArgs) Handles RadAsyncUpload1.FileUploaded

 

 

Dim strFileName As String = Request.QueryString("orderid") & "_" & e.File.GetName())

 

e.File.SaveAs(Path.Combine(Server.MapPath(

"../Gallery"), strFileName))

 

 

Me.SqlDataSource2.InsertParameters(0).DefaultValue = utility.ConvertStringToInterger(Request.QueryString("orderid"))

 

 

Me.SqlDataSource2.InsertParameters(1).DefaultValue = System.DateTime.Now

 

 

Me.SqlDataSource2.InsertParameters(2).DefaultValue = strFileName

 

 

Me.SqlDataSource2.InsertParameters(3).DefaultValue = String.Empty

 

 

Me.SqlDataSource2.Insert()

 

System.Threading.Thread.Sleep(1000)

CreateThumbNailImage(Server.MapPath(

"../Gallery") & "/" & strFileName, 100, 100, strFileName)

 

DataList1.DataBind()

SetUpdateBtnVisibility()

 

End Sub

 

2 Answers, 1 is accepted

Sort by
0
sathish venkat
Top achievements
Rank 2
answered on 26 Aug 2010, 09:36 AM

and i am using Q2 2010.2.623.35 version dll
 previously i can select multiple images but i got login prompt issue then i added below script
 

 

<

 

 

script type="text/javascript">

 

 

 

 

 

Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable =

 

function() { return false; }

 

 

 

</script>

 

 


from http://www.telerik.com/community/forums/aspnet-ajax/async-upload/solution-upload-fails-or-login-prompt-appears-when-using-forms-windows-authentication.aspx

now i am not getting login prompt and its working fine for single image but i cant select more than one images.
0
h@r!
Top achievements
Rank 1
answered on 26 Aug 2010, 10:08 AM
hi I am uisng telerik version 2009.3.1314.35.It is being used in the server also.I need to use rad async appload.Multiple files are being uploaded but they are saved by default in appdata with different format.Even I have given the target folder path it is no being considered.
How can I customize the target folder path from the default path and save files in the correct format.

 <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1"
            OnFileUploaded="AsyncUpload1_OnFileUploaded" OnClientAdded="addTitle" MultipleFileSelection="Automatic" >
        </telerik:RadAsyncUpload>
Tags
AsyncUpload
Asked by
sathish venkat
Top achievements
Rank 2
Answers by
sathish venkat
Top achievements
Rank 2
h@r!
Top achievements
Rank 1
Share this question
or