[CLOSED] load local file clientside

  1. #1

    [CLOSED] load local file clientside

    Hi,

    In our application client chooses files to upload. We want to provide preview for users for pdf and image files. Based on this preview user will decide to upload files or not.

    We tried to use iframe inside panel. It does not load file. If we try to keep file in application subfolder and give path like "../folder1/file1.pdf". It works.


              <ext:Panel ID="Panel2" runat="server" Title="File Viewer" Closable="true" Border="true"   Height="100" Padding="6">
                                                    <AutoLoad Mode="IFrame" Url="File:///D:\abc\file1.pdf" AutoDataBind="true">
                                                    </AutoLoad>
                                                  
                                                </ext:Panel>

    How can we show preview client side?

    Thanks &amp; Regards
    Parag Mulay
    Last edited by geoffrey.mcgill; Jul 07, 2010 at 2:29 AM.
  2. #2

    RE: load local file clientside

    Hello, yobnet!

    Unfortunately you can't use a local path as a value of AutoLoad property. This is because of limits of JavaScript security. Scripts are permitted access only to data in the current document or closely related documents (generally those from the same site as the current document). No access is granted to the local file system, the memory space of other running programs, or the operating system?s networking layer.
    Last edited by geoffrey.mcgill; Jul 07, 2010 at 2:28 AM.

Similar Threads

  1. Replies: 4
    Last Post: Nov 11, 2010, 11:46 AM
  2. [CLOSED] The translation does not work using .net local file resources?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 11, 2010, 2:45 PM
  3. Modify store load params clientside
    By jchau in forum 1.x Help
    Replies: 14
    Last Post: Aug 10, 2009, 10:41 AM
  4. panel with LoadMask on local file
    By jmilton in forum 1.x Help
    Replies: 7
    Last Post: Apr 03, 2009, 10:09 AM
  5. [CLOSED] Unable to Load Asp.NET Ajax Framework ClientSide
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 31, 2009, 11:38 AM

Posting Permissions