a.maleki
سه شنبه 27 مهر 1389, 13:33 عصر
اول از همه از مدیران زحمت کش سایت می خواهم که لطفا کنند این تاپیک را حذف نکنند
دوستان سلام من این کد رو نوشتم زمانی که لوکال کار می کنم عکس درست در پوشه مورد نظر ذخیره میشه ولی در اینترنت که آپ می کنم نمی شه لطفا من را راهنمائی کنید
Try
Dim imgfolder As String = "image_miveh"
Dim save_path As String
Dim savefile As String
Dim test As String
If FileUpload_pic.HasFile Then
Try
save_path = Path.Combine(Request.PhysicalApplicationPath, imgfolder)
savefile = Path.Combine(save_path, FileUpload_pic.FileName)
test = FileUpload_pic.PostedFile.ContentType
' If test = "image/bmp" Or test = "image/jpg" Or test = "image/jpeg" Then
FileUpload_pic.SaveAs(savefile)
' End If
Catch ex As Exception
End Try
End If
Catch ex As Exception
End Try
لطفا از این پس در انتخاب عناوین دقت بیشتری نمایید.
دوستان سلام من این کد رو نوشتم زمانی که لوکال کار می کنم عکس درست در پوشه مورد نظر ذخیره میشه ولی در اینترنت که آپ می کنم نمی شه لطفا من را راهنمائی کنید
Try
Dim imgfolder As String = "image_miveh"
Dim save_path As String
Dim savefile As String
Dim test As String
If FileUpload_pic.HasFile Then
Try
save_path = Path.Combine(Request.PhysicalApplicationPath, imgfolder)
savefile = Path.Combine(save_path, FileUpload_pic.FileName)
test = FileUpload_pic.PostedFile.ContentType
' If test = "image/bmp" Or test = "image/jpg" Or test = "image/jpeg" Then
FileUpload_pic.SaveAs(savefile)
' End If
Catch ex As Exception
End Try
End If
Catch ex As Exception
End Try
لطفا از این پس در انتخاب عناوین دقت بیشتری نمایید.