Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Dmitry  
#1 Posted : Wednesday, March 3, 2010 10:19:56 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Sometimes users cannot install Image Uploader ActiveX due to security restrictions applied on their computers by security policies of companies. As a solution we suggest enable installation progress which can detect this situation and give users information how to work it around (they need to download resditributable package of Image Uploader and install it manually). The details on this approach can be found in the Using Image Uploader Installation Progress topic.

The sample in this article gives another approach. If Image Uploader ActiveX cannot be installed standard HTML form (with “browse” and “upload” buttons) is displayed allowing users upload files one by one using standard browser functionality.

Additionally this sample demonstrates two more features. Here are full set of features demonstrated by this sample:
  1. How to upload entire folders with subfolders to the server.
  2. How to determine if the user fails to install ActiveX and show a basic upload fields instead of Image Uploader.
  3. How to configure automatic resume of the upload if it is interrupted.

Edited by user Wednesday, March 3, 2010 10:22:16 PM(UTC)  | Reason: Not specified

File Attachment(s):
DegradationDemo.zip (2,351kb) downloaded 37 time(s).
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
andreym  
#2 Posted : Tuesday, June 29, 2010 6:35:42 PM(UTC)
andreym

Rank: Advanced Member

Groups: Member
Joined: 6/16/2009(UTC)
Posts: 134

Was thanked: 8 time(s) in 8 post(s)
I've made improvements for the previous demo. Now you do not need to manually set instructionsHtml property:
Code:
// Add "Browse" fields which will be shown if ActiveX fails.
writer.instructionsHtml = '<div><input type="file" name="file" /><input type="submit" value="Upload" name="submitButton" /></div>';


Instead you only need to put fallback content inside SimpleUploadPanel panel:
Code:
<asp:Panel runat="server" ID="SimpleUploadPanel">
    <asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="Upload" onclick="Button1_Click" />
</asp:Panel>


And this content will be shown if ActiveX installation fails.

Edited by user Tuesday, June 29, 2010 7:31:53 PM(UTC)  | Reason: Not specified

File Attachment(s):
DegradationDemo.zip (2,351kb) downloaded 20 time(s).
Dmitry.Obukhov  
#3 Posted : Wednesday, December 7, 2011 8:10:31 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
***Update

Degradation demo sample for Image Uploader 7 illustrates how to handle situation when ActiveX control cannot be installed on the user machine.

Edited by user Wednesday, December 7, 2011 8:14:33 PM(UTC)  | Reason: Not specified

File Attachment(s):
iu7_degradationDemo.zip (4,343kb) downloaded 14 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.