You need to have these components installed on your server to upload images and adjust the image size with the Asp Upload component and the Asp Jpeg component. If these components are not installed, you cannot perform this operation. Usually the majority of companies providing windows hosting services provide this service. But if you are not sure and if you need this processing, please check if it is necessarily buy hosting services.


Our image upload script consists of two parts: form and upload. First, we must create the folder in which we will save the image to the main directory of our server or localhost, and then grant write-to-read permissions to the folder we created.


In particular I will try to explain the process of registering the non-standard pictures in a standard format to the server in a high quality format, which causes the site visualization to be distorted due to the imbalance of the picture sizes in the majority of the sites.


You can perform this operation with the following code.


<%
Function cevir(data)
data = Replace (data ,"ı","i",1,-1,1)
data = Replace (data ,"ğ","g",1,-1,1)
data = Replace (data ,"ü","u",1,-1,1)
data = Replace (data ,"ş","s",1,-1,1)
data = Replace (data ,"ö","o",1,-1,1)
data = Replace (data ,"ç","c",1,-1,1)
data = Replace (data ,"I","i",1,-1,1)
data = Replace (data ,"Ğ","g",1,-1,1)
data = Replace (data ,"Ü","u",1,-1,1)
data = Replace (data ,"Ş","s",1,-1,1)
data = Replace (data ,"İ","i",1,-1,1)
data = Replace (data ,"Ç","c",1,-1,1)
data = Replace (data ,"Ö","o",1,-1,1)
data = Replace (data ," ","-",1,-1,1)
data = Replace (data ,">","",1,-1,1)
data = Replace (data ,"<","",1,-1,1)
data = Replace (data ,"*","",1,-1,1)
data = Replace (data ,"%","",1,-1,1)
data = Replace (data ,"'","",1,-1,1)
data = Replace (data ,"/","",1,-1,1)
data = Replace (data ,"","",1,-1,1)
data = Replace (data ,"'","",1,-1,1)
cevir=data
End Function
%>

We changed the Turkish characters for the file name. Now we upload it to our asp file. You can see the document.


What is AspUpload?

AspUpload is a COM + component that allows an ASP application to capture, save, and process files uploaded to a web server with a browser. The files are selected to load via an HTML POST form using the <INPUT TYPE = FILE> tag. With ApUpload, you can add file upload functionality to your Web application in a 2-line ASP script. In addition to the installation, AspUpload allows you to securely download, save files in the database, and attribute management, image size extraction, file encryption, etc. Includes a wide range of file management functions.


Some of the Features

  • Compatibility with IIS 4, IIS 5, IIS 6, IIS 7, and IIS 8 (Windows NT / 2000 / XP / 2003/2008/7/8/2012/2016).
  • Up to 4 GB of files can be loaded (AspUpload 3.1.0.1 and IIS 7+ required.)
  • Ability to upload multiple files at the same time.
  • Access to text items in a form.
  • HTML based progress bar.
  • Unicode support.
  • Loads into memory.
  • Secure file download.
  • Ability to process Access Control Lists (ACLs) of uploaded files.
  • Ability to change file attributes.
  • Ability to save files in a database as a blob.
  • Support for MS Access OLE Object Headers.
  • Export files from the database.
  • Automatically create unique file names to prevent collisions with existing files.
  • Ability to set a limit on the size of uploaded files.
  • Last Modified iştiril ability to protect timestamp files.

Encryption support.

Sort by directory list.

Automatic ActiveX DLL registration.

Disable some features through registry settings.

Copy, move and delete files.

Indexing and deleting.

Full ADO support when holding BLOBs.

MacBinary support.

Directory downloads (when used with XUpload or JUpload).

Image size and type extraction function.

One-way hash function calculation for uploaded files.