UXFileUpload

10 replies. Last post: March 16, 2012 11:39 PM by Jimmy Petrus
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
ISOL TIMember

Hi,

now i have a another problem with this control, occurs when i try to upload a file to a server path,

the file transfer is incomplete,

I wish to know the reason for this problem and how to correct the file loads, usually occurs with files larger than 30 MB

Annex xaml code and xaml.cs

<Intersoft:UXFileUpload Grid.Row="1" Height="Auto" Width="250"
x:Name="uploadPresentaciones" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="12,12,12,12"
ServiceUrl="http://localhost:16219/UXFileUploadHandler.ashx"
TargetFolder="~/ClientBin/MyStorageFolder" OverwriteExistingFiles="True"
TargetWebUrl="http://{host}/ClientBin/MyStorageFolder"
MaxFileSize="204800000" Style="{StaticResource PhotoUploadStyle}"
IsAutomaticUpload="True" CanSelectMultiple="False"
ShowStatisticsOnCompleted="False" EnforceFileTypeValidation="True"
FileTypeFilter="PPT File(*.ppt;*.pptx), Document File(*.pdf;*.doc;*.docx), Excel File(*.xls;*.xlsx)|*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx;"
UploadedFileUrl="{Binding preview, Mode=TwoWay, ValidatesOnDataErrors=True}"
Visibility="Collapsed" FilesUploaded="uploadPresentaciones_FilesUploaded"
FilesUploading="uploadPresentaciones_FilesUploading"
FilesUploadFailed="uploadPresentaciones_FilesUploadFailed"
UploadCancelled="uploadPresentaciones_UploadCancelled"/>


XAML.CS

bool isUploading = false;

private void uploadPresentaciones_FilesUploaded(object sender, Intersoft.Client.UI.Aqua.UXInput.FilesUploadResponseEventArgs e)
{
lastUpladedFile = e.Files[0].ResultUrl.LocalPath;
if (!string.IsNullOrEmpty(lastUpladedFile))
{
lblArchivo.Visibility = System.Windows.Visibility.Visible;
uploadPresentaciones.Visibility = System.Windows.Visibility.Collapsed;
btnSalvar.Visibility = System.Windows.Visibility.Visible;
}
isUploading = false;
}

private void uploadPresentaciones_FilesUploading(object sender, Intersoft.Client.UI.Aqua.UXInput.FilesUploadingEventArgs e)
{
isUploading = true;
}

private void uploadPresentaciones_FilesUploaded(object sender, Intersoft.Client.UI.Aqua.UXInput.FilesUploadResponseEventArgs e)
{
lastUpladedFile = e.Files[0].ResultUrl.LocalPath;
if (!string.IsNullOrEmpty(lastUpladedFile))
{
lblArchivo.Visibility = System.Windows.Visibility.Visible;
uploadPresentaciones.Visibility = System.Windows.Visibility.Collapsed;
btnSalvar.Visibility = System.Windows.Visibility.Visible;
}
isUploading = false;
}

private void uploadPresentaciones_UploadCancelled(object sender, Intersoft.Client.UI.Aqua.UXInput.UploadCancelledEventArgs e)
{
isUploading = false;
}


Regards,
Carlos

All times are GMT -5. The time now is 2:19 PM.
Previous Next