Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Page load images
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

top
Junior Member

150 Posts

Posted - 28 April 2012 :  02:40:27  Show Profile  Reply with Quote
Thank you
Raise the image by date

filename = Year(Now) & Month(Now) & Day(Now) & Hour(Now) & Minute(Now) & Second(Now) & "_" & filename

On this code

Wait for help
<%
Set Upload = Server.CreateObject("Persits.Upload")
Path = Server.MapPath(strScriptYolu &"forum/data/")

Count = Upload.SaveVirtual("/forum/data/")

If Count = 0 Then

	Response.Redirect "outputFile.asp?tab=resim_yukle&hata=1"

Else
	Set File = Upload.Files(1)
	If File.ImageType <> "UNKNOWN" Then

		strKelimeler = Trim(Temizle(Upload.Form("kelimeler")))

		Set jpeg = Server.CreateObject("Persits.Jpeg")
		jpeg.Open(File.Path)
		jpeg.Width = 250
		jpeg.Height = 190
    		jpeg.Save File.Path
		Set jpeg = Nothing

		Set jpeg = Server.CreateObject("Persits.Jpeg")
		jpeg.Open( File.Path )
		jpeg.Width = 100
		jpeg.Height = 76
		SavePath = Path & "\th_" & File.ExtractFileName
		If UCase(Right(SavePath, 3)) <> "JPG" Then
			SavePath = SavePath & ".jpg"
		End If
		jpeg.Save SavePath
		DosyaAdi = File.ExtractFileName
		Set jpeg = Nothing

		kdGenel.Open "SELECT * FROM tblResimler", adoCon, 1, 3
		kdGenel.Addnew
		kdGenel("Resim") = DosyaAdi
		kdGenel("Kucuk") = "th_" & DosyaAdi
		kdGenel("Kelimeler") = strKelimeler
		kdGenel.Update
		kdGenel.Close 

		Response.Redirect "resim_frame.asp?tab=resimler"

  	Else

		Response.Redirect "resim_frame.asp?tab=resim_yukle&hata=1"

	End If
End If
%>



Edited by - top on 28 April 2012 06:43:15
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07