A
|
artistscope author 9/26/2006 |
Bump |
![]() |
Sergey Kornilov admin 9/27/2006 |
Here is how you can do this in ASPRunnerPro 4.1. If ctype = "upload2" Then ' write file strValue = Replace(strValue, " ", "_") rs("Model")= strValue if strValue<>"" then _ WriteToFile Server.MapPath(GetUploadFolder("Model","") & strValue), GetRequestForm("file_Model") end if |
A
|
artistscope author 9/30/2006 |
Here is how you can do this in ASPRunnerPro 4.1.
|
![]() |
Sergey Kornilov admin 10/1/2006 |
Search for WriteToFile function. This function takes as a first parameter full file name with path. |
A
|
artistscope author 10/1/2006 |
Search for WriteToFile function. This function takes as a first parameter full file name with path. Before calling this function make sure spaces are replaced with underscores. See my sample code for more info.
|
![]() |
Sergey Kornilov admin 10/1/2006 |
rs("PRODIMAGE")= strValue **strValue = Replace(strValue, " ", "")** if strValue<>"" then _ WriteToFile Server.MapPath(GetUploadFolder("PROD_IMAGE") & strValue), GetRequestForm("filePROD_IMAGE") end if |
A
|
artistscope author 10/1/2006 |
This doesn't change the file name in the _add.asp page fields or the image name saved to the server. |
![]() |
Sergey Kornilov admin 10/3/2006 |
Revised: strValue = Replace(strValue, " ", "_") rs("PRODIMAGE")= strValue if strValue<>"" then WriteToFile Server.MapPath(GetUploadFolder("PROD_IMAGE") & strValue), GetRequestForm("filePROD_IMAGE") end if |
A
|
artistscope author 10/4/2006 |
Revised:
|
![]() |
Sergey Kornilov admin 10/4/2006 |
Make sure you doing replace before assigning a value to recordset variable. |
A
|
artistscope author 10/4/2006 |
Make sure you doing replace before assigning a value to recordset variable.
|
J
|
Jane 10/6/2006 |
Check that you doing replace before assigning a value to recordset variable in the code you posted above. |