Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Upload photo to database?

Last post 02-11-2009, 9:01 PM by cutechat. 33 replies.
Page 2 of 2 (34 items)   < Previous 1 2
Sort Posts: Previous Next
  •  02-03-2009, 8:34 AM 48291 in reply to 48290

    Re: Upload photo to database?

    Hi,
     
    Can you post your code or web.config ?
     
    Regards,
    Terry
  •  02-03-2009, 10:08 AM 48294 in reply to 48291

    Re: Upload photo to database?

    No code, apart from the uploaderdatabaseprovider you supplied. I re-created the database table using your sql definition to make sure it wasn't that.
     
    Locally am running IIS7 and SQL Express 05. For testing I am just trying to upload a .doc file about 2 megabytes in size. Am not using ajax in this example. Silverlight mode seems to work, flash and iframe don't.
     
    ASPX page and web.config: (sorry can't see how to insert code)
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    </head>
    <body>
        <form id="form1" runat="server">
        <div>  
            <CuteWebUI:Uploader ID="Uploader2" runat="server" FileTypeNotSupportMsg="File type not supported"
                InsertText="Flash(doesn't work)" OnFileUploaded="FileUploaded" UploadType="Flash">
                <ValidateOption AllowedFileExtensions="doc" MaxSizeKB="1024000" />
            </CuteWebUI:Uploader>
            <CuteWebUI:Uploader ID="Uploader2" runat="server" FileTypeNotSupportMsg="File type not supported"
                InsertText="Silverlight(does work)" OnFileUploaded="FileUploaded" UploadType="Silverlight">
                <ValidateOption AllowedFileExtensions="doc" MaxSizeKB="1024000" />
            </CuteWebUI:Uploader>
            <p>        
                <asp:Literal ID="ltOutput" runat="server" />
            </p>
        </div>
        </form>
    </body>
    </html>
     
    -- web.config:
     
    <?xml version="1.0"?>
    <configuration>
      <appSettings>
        <add key="CuteWebUI.AjaxUploader.Provider"  value="UploaderDatabaseProvider.UploaderSqlServerProvider,UploaderDatabaseProvider"/>
        <add key="UploaderDatabase" value="User ID=AjaxUploader_INETUSER;Password=XXXX;Initial Catalog=XXXX;Data Source=localhost\SQLExpress"/>
      </appSettings>

      <system.webServer>
        <modules>
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
        </modules>
      </system.webServer>

        <connectionStrings/>
        <system.web>
          
          <pages>
            <controls>
              <add namespace="CuteWebUI" assembly="CuteWebUI.AjaxUploader" tagPrefix="CuteWebUI"/>
           </controls>
          </pages>

          <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
            -->
            <compilation debug="true">

            </compilation>
            <!--
                The <authentication> section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
            <authentication mode="Windows" />
            <!--
                The <customErrors> section enables configuration
                of what to do if/when an unhandled error occurs
                during the execution of a request. Specifically,
                it enables developers to configure html error pages
                to be displayed in place of a error stack trace.

            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
        
        </system.web>

    </configuration>

     
     

     
     
  •  02-03-2009, 10:10 AM 48295 in reply to 48294

    Re: Upload photo to database?

    Also I re-downloaded the ajaxuploader dll so is the latest version
  •  02-03-2009, 10:41 AM 48298 in reply to 48295

    Re: Upload photo to database?

    Hi,
     
    That should be a new bug. We can fix it now. Please wait for a monent.
     
    Regards,
    Terry
     
  •  02-03-2009, 11:50 AM 48305 in reply to 48298

    Re: Upload photo to database?

    Hi,
     
    Please download the control and try again.
     
    Regards,
    Terry
  •  02-04-2009, 4:12 AM 48348 in reply to 48305

    Re: Upload photo to database?

    Thanks, this new version has worked in all my tests so far.. hopefully problem resolved. Will update if we run into any issues.
  •  02-04-2009, 8:45 AM 48357 in reply to 48348

    Re: Upload photo to database?

    Spoke to soon.. getting the same behavior again but with larger files. Always works in silverlight, but not flash. Testing uploads with file sizes around 6 megs.
  •  02-06-2009, 4:07 AM 48443 in reply to 48357

    Re: Upload photo to database?

    bump.. can you replicate this issue?
  •  02-06-2009, 4:45 AM 48446 in reply to 48443

    Re: Upload photo to database?

    Hi,
     
    Do you set the <httpRuntime maxRequestLength /> ?
     
    Regards,
    Terry
  •  02-06-2009, 5:30 AM 48447 in reply to 48446

    Re: Upload photo to database?

    yes, set to 2097151 for testing.
     
    everything seems to work in silverlight mode but not flash or iframe.
  •  02-09-2009, 4:19 AM 48485 in reply to 48447

    Re: Upload photo to database?

    Any ideas? Can you replicate this problem?
  •  02-10-2009, 8:46 AM 48574 in reply to 48485

    Re: Upload photo to database?

    Hi,
     
    We are testing on this issue.
     
    Before we found the reason , I sugguest you let the ~/UploaderTemp folder could be write by the ASPNET or NETWORK SERVICE account.
     
    While you are streaming the data to database, the uploader still use that folder to improve upload performance.
     
    Regards,
    Terry
  •  02-11-2009, 3:58 AM 48602 in reply to 48574

    Re: Upload photo to database?

    Unfortunately that's not an option for us.. we absolutely can't write anything to disk, even temporarily.
     
    In either case, it works fine without that folder with smaller files and always works in Silverlight mode regardless of filesize. If the uploader is trying to use the folder when we're using the custom upload provider in the other two modes.. that sounds more like a bug? I don't see why/how writing to disk would increase performance.
     
     
  •  02-11-2009, 9:01 PM 48650 in reply to 48602

    Re: Upload photo to database?

    Hi,
     
    We are not able to reproduce the 'UploaderTemp is denied' error.
     
    Can you make sure that you are using the last version ?
     
    And do you get 'UploaderTemp is denied' error in firefox ?
     
    Regards,
    Terry
Page 2 of 2 (34 items)   < Previous 1 2
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.