question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I configure the asyncfileupload control to support multipe file upload?

See original GitHub issue

I was using the Ajax controltoolkit version 4. I installed the latest AJAX Controltoolkit (16.1) from the Visual Studio Nuget packet manager.

But, I don’t seem to be able to use the latest version.

It’s been installed in packages\AjaxControlToolkit.16.1.0.0\lib\net40 of my project. I copied the new AjaxControlToolkit.dll file to my application’s bin folder and replaced the existing dll. I restarted visual studio and also built my application again.

My page code has this:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<cc1:AsyncFileUpload ID="asyncCoverPhoto" CssClass="imageUploaderField" runat="server" ClientIDMode="AutoID" OnClientUploadComplete="uploadCoverphotoComplete" />

But I don’t see how I can configure the Asyncfileupload control to allow multiple file uploads. I tried adding the attribute AllowMultiple="true", but it doesn’t do anything. Also my Visual Studio Intellisense does not show any new attributes (such as the option to allow multiple files to be uploaded)

How can I add a asyncfileupload control that supports multipe files to be uploaded?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MikhailTymchukDXcommented, Jun 28, 2016

No, Visual Studio Express editions do not support extensions. You can use Visual Studio 2015 Community Edition, which has wider capabilities. This edition is also free.

1reaction
MikhailTymchukDXcommented, Jun 28, 2016

@flo-rider, thank you for reply!

We don’t advise to use the NuGet package for Visual Studio toolbar items, because a toolbar is shared across multiple projects, while the NuGet package affects only a particular solution or project. Solution/project removal can lead to a broken reference in a toolbar.

If you want to add toolkit items to a toolbar, the preferred way is to use the official installer, which will register toolbox items for all suitable Visual Studio instances.

However, you can use any control without any issues after installing the NuGet package, so you can copy this code into your page markup:

<ajaxToolkit:AjaxFileUpload runat="server" />

Make sure you added this web handler to the Web.config file:

<system.webServer>
  <handlers>
    <add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/>
  </handlers>
</system.webServer>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Uploading Multiple files using AsyncFileUpload - MSDN
This sets attributes on the contained file input control within the rendered AsyncFileUpload controls which allows the multiple file selection in Firefox.
Read more >
AsyncFileUpload- Uploading multiple files, individually.
I'm using the asyncfileupload control, and have it woking to an extent. I'm able to upload the image to the relevant directory and...
Read more >
Upload Multiple Files Using FileUpload Control In ASP.NET 4.5
The FileUpload control in ASP.NET extends it's functionality by supporting the upload of multiple files at once.
Read more >
Ajax AsyncFileUpload Upload Control upload file multiple time
I have a Web Form which has some asp.net form controls and Two AsyncFileUpload controls. When I upload the image using first ...
Read more >
Selection Multiple Files - ASP.NET AJAX File Upload Control
By default, the multi-file selection mode is disabled. To enable it, switch the AdvancedModeSettings.EnableMultiSelect property to true. In this demo, a list of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found