Ticket #2063 (closed Bug: fixed)
Problem on uploading file
| Reported by: | cyim | Owned by: | alfonsoml |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6.1 |
| Component: | Server : ASP | Version: | FCKeditor 2.5.1 |
| Keywords: | Confirmed Review+ | Cc: | e.l-hostis@… |
Description
I try to upload a file, but I have this error : ADODB.Stream erreur '800a0bbc' Impossible d'écrire dans le fichier
In English, it means "Impossible to write in the file".
Here, the file path generated by fck :
NAS-PROD\wwwsites-data$\demo-modules.cyim.com\upload\file/test.doc
The problem is due to a concatenation of IIS server path and file path.
IIS path is like that
cylab\sites\
File path is like that : /file/myfile.doc
I have updated the file "class_upload.asp" to correct my problem : Function SaveAs, I add this line : sFileName = replace(sFileName, "/", "\")
I think i'm not the first guy to use IIS and FCK. So, why i have this problem ?
Attachments
Change History
comment:1 Changed 5 years ago by w.olchawa
- Keywords Pending WorksForMe added; IIS, Upload removed
I'm not a IIS expert, however I have encountered similar problems when trying to upload a file. In my case (using the asp connector) the mistake was that I didn't create a proper directory for the user files and IIS was blocking the creation of a new directory when the File Browser where ran. Firstly I would check
ConfigUserFilesPath = '/your directory here/'
(line 35 in config.asp) and see what path has been set there.
So this looks like a privileges problem to me however since I don't know IIS much I could be mistaken. Please let us know about the results.
Thanks
comment:2 Changed 5 years ago by alfonsoml
- Owner set to alfonsoml
- Status changed from new to assigned
- Keywords Confirmed added; Pending WorksForMe removed
I can confirm that this problem happens with using a network path for the files. I'm gonna attach a patch that fixes this and at least another problem related to network paths.
comment:3 Changed 5 years ago by alfonsoml
- Keywords Review? added
The if (sParent = "") then exit sub line in the patch avoids an out of memory error (the function calls itself recursively with an empty string).
