Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Image Uploading Issue
Previous Previous
 
Next Next
New Post 8/1/2007 12:50 AM
User is offline John
1 posts
10th Ranked


Image Uploading Issue 

Hi,
 
      I can upload the image through IE without any issue,when i try to upload the Image through Netscape,I am getting error "Could not find a part of the path "c:\inetpub\wwwroot\Up_Img\images\"."  (Where Image is supposed to be saved).I am using VS.NET 2003.Please help me.

Code Below, 

If Not (fileupload1.PostedFile Is Nothing) Then

            Dim strLongFilePath As String = fileupload1.PostedFile.FileName
            Dim intFileNameLength As Integer = InStr(1, StrReverse(strLongFilePath), "\")
            strFileName = Mid(strLongFilePath, (Len(strLongFilePath) - intFileNameLength) + 2)

            If fileupload1.PostedFile.InputStream.Length < 500000 Then
                Select Case fileupload1.PostedFile.ContentType
                    Case "image/pjpeg", "image/jpeg", "image/gif", "image/png"
                        fileupload1.PostedFile.SaveAs(Server.MapPath("images/") & strFileName)

                        lbStatus.ForeColor = System.Drawing.Color.Green
                        lbStatus.Text = strFileName & " has been uploaded successfully. "
                    Case Else
                        lbStatus.ForeColor = System.Drawing.Color.Red
                        lbStatus.Text = "Not a valid image"
                End Select
            Else
                lbStatus.ForeColor = System.Drawing.Color.Red
                lbStatus.Text = "Image Size is too Large"
            End If

  End If
 
Regards,
John.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Image Uploading Issue
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP