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

File History

5 Answers 77 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
dhuss
Top achievements
Rank 1
dhuss asked on 02 Jul 2013, 08:57 PM
When you use the standard "input" control with type="file", the browse button opens the file select window. The file name dropdown may contain a history of files that you previously worked with. Does the radAsyncUpload have a property to set that keeps this history. When we use this control, the file dropdown never contains any history. If I click the select button on this page and then the file dropdown, I see a list of all the files I have worked with over the last several days. Suggestions

Thanks
Dennis

5 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 05 Jul 2013, 02:28 PM
Hi Dennis,

RadAsyncUpload control is based on the same standard html input. I have tested this on Windows 7 and can confirm that RadAsyncUpload shows the same dropdown history.  However it does not have property that allow you cannot control the Open File Dialog. It just tells the browser to open this dialog.

Please record a video to see what differences you observe.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
dhuss
Top achievements
Rank 1
answered on 05 Jul 2013, 04:03 PM
How do I get a video to you beings your "attach files" only accepts graphics extensions. I have a wmv file that shows the standard input, radUpload, and radAsyncUpload. Both the standard and radUpload show file history, radAsyncUpload doesn't. This is my aspx code.

    <%--Standard Input--%>
    <tr>
        <td>
            <asp:Label ID="Label24" runat="server" Text="Standard Input"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <input id="aspInput" runat="server" type="file" />
        </td>
    </tr>
    <tr>
        <td>
              
        </td>
    </tr>
    <%--RadUpload--%>
     <tr>
        <td>
            <asp:Label ID="Label18" runat="server" Text="RadUpload"></asp:Label>
        </td>
    </tr>
   <tr>
        <td>
            <telerik:RadUpload ID="fupDocument" runat="server" Localization-Select="Browse" TabIndex="-1">
                <Localization Select="Browse"></Localization>
            </telerik:RadUpload>
        </td>
    </tr>
    <tr>
        <td>
              
        </td>
    </tr>
    <%--RadAsyncUpload--%>
    <tr>
        <td>
            <asp:Label ID="Label22" runat="server" Text="RadAsyncUpload"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <telerik:RadAsyncUpload ID="radUpload1" runat="server" MultipleFileSelection="Automatic"
                Width="100%" EnableEmbeddedSkins="false" ControlObjectsVisibility="All" MaxFileInputsCount="5"
                InputSize="50" OnClientAdded="onClientAdded" OnClientFilesSelected="onClientFilesSelected"
                EnableFileInputSkinning="false">
            </telerik:RadAsyncUpload>
        </td>
    </tr>
 
 
<script type="text/javascript" language="javascript">
 
    var isCanceled = false;
    function onClientFilesSelected(sender, args) {
        if (args.get_count() > 5) {
            args.set_cancel(true);
            isCanceled = true;
            alert("Please only select a maximum of 5 files");
        }
    }
 
    function onClientAdded(sender, args) {
        if (isCanceled && sender._uploadedFiles.length > 0) {
            $telerik.$(args.get_row()).remove();
            isCanceled = false;
        }
    }
 
</script>


0
Hristo Valyavicharski
Telerik team
answered on 11 Jul 2013, 07:07 AM
Hi Dennis,

You may open a support ticket, where you will be able to upload video files or you may use some free software like Jing. Here is a short video showing how I tested your code. On the video you can see that all browsers use the Open Dialog Window. There is one exception to that case and it is thrown when the  RadAsyncUplod is used in IE9. In this case RadAsyncUpload uses Silverlight upload module which opens its own window. However, I would suggest that you disable the Silverlight module by setting DisablePlugins property to true.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
dhuss
Top achievements
Rank 1
answered on 11 Jul 2013, 01:51 PM
Hi Hristo,
I tried the DisablePlugins = true property and you do get the file history but you loose the ability Ctrl-Click and select multiple files at one time. You can select a single file and then reclick the select button and do this same process multiple times. It is more convenient for our clients to be able to select multiple files at one time than see a file history. Thanks for your help on this. BTW, I am using version 2013.1.417.35

Dennis
0
Hristo Valyavicharski
Telerik team
answered on 16 Jul 2013, 07:54 AM
Hi Dennis,

RadAsyncUpload relies on upload modules to offers Multiple Files Selection for the older browsers. When DisablePlugins is set to true older browsers use the most simple IFrame module. Unfortunately it does not provide support for multiple files selection - browser limitation. RadAsyncUpload module uses Silverlight module only for IE7/8/9.

It depends on the browsers version that your customers use. With higher priority is applied HTML5 FileAPI module as it offers the riches functionality. If the browser doesn't support it, Silverlight/Flash are used. If these both plugins are not installed then IFrame module is used.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
AsyncUpload
Asked by
dhuss
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
dhuss
Top achievements
Rank 1
Share this question
or