Ticket #2063 (closed Bug: fixed)

Opened 2 years ago

Last modified 22 months ago

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

ConfigSiteWeb.png Download (20.4 KB) - added by cyim 2 years ago.
2063.patch Download (2.9 KB) - added by alfonsoml 22 months ago.
Proposed patch

Change History

Changed 2 years ago by cyim

Changed 2 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

Changed 22 months ago by alfonsoml

  • keywords Confirmed added; Pending WorksForMe removed
  • owner set to alfonsoml
  • status changed from new to assigned

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.

Changed 22 months ago by alfonsoml

Proposed patch

Changed 22 months 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).

Changed 22 months ago by fredck

  • keywords Review+ added; Review? removed

Changed 22 months ago by alfonsoml

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone set to FCKeditor 2.6.1

Fixed with [2037]

Changed 22 months ago by cyim

Thanks a lot :)

Note: See TracTickets for help on using tickets.