Ticket #2063 (closed Bug: fixed)

Opened 7 years ago

Last modified 6 years 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 (20.4 KB) - added by cyim 7 years ago.
2063.patch (2.9 KB) - added by alfonsoml 6 years ago.
Proposed patch

Change History

Changed 7 years ago by cyim

comment:1 Changed 6 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 6 years 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 6 years ago by alfonsoml

Proposed patch

comment:3 Changed 6 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).

comment:4 Changed 6 years ago by fredck

  • Keywords Review+ added; Review? removed

comment:5 Changed 6 years ago by alfonsoml

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone set to FCKeditor 2.6.1

Fixed with [2037]

comment:6 Changed 6 years ago by cyim

Thanks a lot :)

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy