I have a local development server that works fine with IIS 5.1 uploading files through the editor.
On my remote production server with IIS 6.0 it does not work. The permissions have been set so that the IUSR account has full access, and I can create directories, but when I try to upload a file it just hangs - no error message.
Any ideas?
UPDATE:
When using the test environment for file browsing and uploading I got the following error:
ADODB.Stream error '800a0bbc'
Write to file failed.
/fckeditor/editor/filemanager/connectors/asp/class_upload.asp, line 270
The code that it was executing in the class_upload.asp (actual line is underlined):
Dim oFileStream
Set oFileStream = Server.CreateObject("ADODB.Stream")
With oFileStream
.Type = 1
.Mode = 3
.Open
oSourceData.Position = File(sItem).Start
oSourceData.CopyTo oFileStream, File(sItem).Size
.Position = 0
.SaveToFile sFileName, 2
.Close
End With
Set oFileStream = Nothing
Thanks!
On my remote production server with IIS 6.0 it does not work. The permissions have been set so that the IUSR account has full access, and I can create directories, but when I try to upload a file it just hangs - no error message.
Any ideas?
UPDATE:
When using the test environment for file browsing and uploading I got the following error:
ADODB.Stream error '800a0bbc'
Write to file failed.
/fckeditor/editor/filemanager/connectors/asp/class_upload.asp, line 270
The code that it was executing in the class_upload.asp (actual line is underlined):
Dim oFileStream
Set oFileStream = Server.CreateObject("ADODB.Stream")
With oFileStream
.Type = 1
.Mode = 3
.Open
oSourceData.Position = File(sItem).Start
oSourceData.CopyTo oFileStream, File(sItem).Size
.Position = 0
.SaveToFile sFileName, 2
.Close
End With
Set oFileStream = Nothing
Thanks!

Re: ASP File Upload - security is already set to full permission
http://classicasp.aspfaq.com/files/dire ... rrors.html
Re: ASP File Upload - security is already set to full permission
My hosting support believes that the problem is due to UNC paths utilized in there load-balanced hosting environment. They were able to get the "test.html" page working correctly by making the following changes in the ia.asp file, but it did not correct it for the production environment of the editor:
---------------------------------------------
I fixed that page you linked to by changing the CombinePaths function in io.asp to:
function CombinePaths( sBasePath, sFolder)
'CombinePaths = RemoveFromEnd( sBasePath, "/" ) & "/" & RemoveFromStart( sFolder, "/" )
Dim sCombinedPath
sCombinedPath = RemoveFromEnd( sBasePath, "/" ) & "\" & RemoveFromStart( sFolder, "/" )
if Right(sCombinedPath, 2) = "\\" then sCombinedPath = Left(sCombinedPath,
Len(sCombinedPath) - 1)
CombinePaths = sCombinedPath
end function
---------------------------------------------
Are there any known fixes for FCKeditor to deal with UNC paths?
Thanks for any thoughts again!
Neo
Re: ASP File Upload - security... now UNC paths (new title)
Andre
Re: ASP File Upload - security... now UNC paths (new title)
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: ASP File Upload - security... now UNC paths (new title)
Re: ASP File Upload - security... now UNC paths (new title)
Ive made the changes that 2063.patch outlines and I get the following error:
--------------------
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'CombineLocalPaths'
/fckeditor/editor/filemanager/connectors/asp/commands.asp, line 178
---------------------
The code looks clean - could this be caused by the NAS being unhappy with the mixed slash ("/","\") environment?
pg
Notes:
Code from commands.asp:
'sFilePath = sServerDir & sFileName
'2008-06-03, FCKeditor 2063.patch from forum.
sFilePath = CombineLocalPaths(sServerDir & sFileName)
Code from io.asp
'2008-06-03, FCKeditor 2063.patch from forum.
function CombineLocalPaths( sBasePath, sFolder )
sFolder = replace(sFolder, "/", "\")
' The RemoveFrom* functions use RegExp, so we must escape the \
CombineLocalPaths = RemoveFromEnd( sBasePath, "\\" ) & "\" & RemoveFromStart( sFolder, "\\" )
end function
Re: ASP File Upload - security... now UNC paths (new title)
sFilePath = CombineLocalPaths(sServerDir, sFileName)
Re: ASP File Upload - security... now UNC paths (new title)
In order to work you need to apply correctly all the changes. The best way it's probably to wait for the next nightly as it will have the fix applied so you just need to get the new files.
Re: ASP File Upload - security... now UNC paths (new title)
Re: ASP File Upload - security... now UNC paths (new title)
peer review process
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: ASP File Upload - security... now UNC paths (new title)
FileTypesAbsolutePath=Server.MapPath("userfiles")
FileTypesAbsolutePath=replace(FileTypesAbsolutePath,"\","/")
make these changes in fckeditor\editor\filemanager\connectors\asp\config.asp
Thanks
Raj
Re: ASP File Upload - security... now UNC paths (new title)