Visualizzazione dei risultati da 1 a 8 su 8

Discussione: FCKeditor e upload ASP

  1. #1

    FCKeditor e upload ASP

    Salve,
    qualcuno conosce FCKeditor? credo non pochi.. www.fckeditor.net
    Bene ho un problema relativo all'upload dei file.

    Sebbene infatti funzioni tutto correttamente con i settaggi ASP, ovvero modifica del testo, quando clicco su "fai l'upload di un file" mi dice che c'è un errore nel file config.php! o meglio che l'upload non è abilitato. Eccerto non è PHP!
    Come mai sebbene sia stato configurato ed è funzionante in ASP, per l'upload va a fare riferimento al file config.php non .asp?

    Grazie in anticipo
    Daniele
    Flash dipendente

  2. #2
    forse è solo sbagliato il messaggio di errore.. non è che nel config.asp è disabilitato l'upload?
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

  3. #3
    forse nel file fckconfig.js va modificato
    codice:
    var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
    var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
    
    con
    var _FileBrowserLanguage	= 'asp' ;	// asp | aspx | cfm | lasso | perl | php | py
    var _QuickUploadLanguage	= 'asp' ;	// asp | aspx | cfm | lasso | perl | php | py
    Provar non nuoce

  4. #4
    Grazie mille. L'errore di prima l'ha corretto... certo che neanche sul wiki di FCK c'era scritto...
    Comunque nonostante tutto non funziona. Ecco l'errore che mi restituisce:

    codice:
    The server didn't send back a proper XML response. Please contact your system administrator.  XML request error: Internal Server Error (500)  Requested URL: http://../fckeditor/editor/filemanag...=1241112179112
      Response text:  <font face="Arial" size=2> 
    
    Errore di run-time di Microsoft VBScript</font> <font face="Arial" size=2>error '800a01b6'</font>
     
    
     <font face="Arial" size=2>Propriet&#224; o metodo non supportati dall'oggetto: 'Response.CodePage'</font> 
    
     <font face="Arial" size=2>../fckeditor/editor/filemanager/connectors/asp/basexml.asp</font><font face="Arial" size=2>, line 33</font>
    Sembra essere un errore del server... I settaggi in config.asp li ho modificati e penso siano corretti.

    Grazie di nuovo per il vostro aiuto.
    Daniele
    Flash dipendente

  5. #5
    Prova a leggere questo 3D e vedi se ti risolve il problema

  6. #6
    Sono riuscito per metà.
    L'upload veloce funziona correttamente, mentre se clicco "cerca sul server" mi ridà sempre lo stesso errore.

    La versione nuova differisce da quella vecchia perchè suddivide in 4 sottocartelle i files

    Ecco il codice

    codice:
    <%
     ' FCKeditor - The text editor for Internet - http://www.fckeditor.net
     ' Copyright (C) 2003-2009 Frederico Caldeira Knabben
     '
     ' == BEGIN LICENSE ==
     '
     ' Licensed under the terms of any of the following licenses at your
     ' choice:
     '
     '  - GNU General Public License Version 2 or later (the "GPL")
     '    http://www.gnu.org/licenses/gpl.html
     '
     '  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
     '    http://www.gnu.org/licenses/lgpl.html
     '
     '  - Mozilla Public License Version 1.1 or later (the "MPL")
     '    http://www.mozilla.org/MPL/MPL-1.1.html
     '
     ' == END LICENSE ==
     '
     ' Configuration file for the File Manager Connector for ASP.
    %>
    <%
    
    ' SECURITY: You must explicitly enable this "connector" (set it to "True").
    ' WARNING: don't just set "ConfigIsEnabled = true", you must be sure that only
    '		authenticated users can access this file or use some kind of session checking.
    Dim ConfigIsEnabled
    ConfigIsEnabled = true
    
    ' Path to user files relative to the document root.
    ' This setting is preserved only for backward compatibility.
    ' You should look at the settings for each resource type to get the full potential
    Dim ConfigUserFilesPath
    ConfigUserFilesPath = "/public/userfiles/"
    
    ' Due to security issues with Apache modules, it is recommended to leave the
    ' following setting enabled.
    Dim ConfigForceSingleExtension
    ConfigForceSingleExtension = true
    
    ' What the user can do with this connector
    Dim ConfigAllowedCommands
    ConfigAllowedCommands = "QuickUpload|FileUpload|GetFolders|GetFoldersAndFiles|CreateFolder"
    
    ' Allowed Resource Types
    Dim ConfigAllowedTypes
    ConfigAllowedTypes = "File|Image|Flash|Media"
    
    ' For security, HTML is allowed in the first Kb of data for files having the
    ' following extensions only.
    Dim ConfigHtmlExtensions
    ConfigHtmlExtensions = "html|htm|xml|xsd|txt|js"
    '
    '	Configuration settings for each Resource Type
    '
    '	- AllowedExtensions: the possible extensions that can be allowed.
    '		If it is empty then any file type can be uploaded.
    '
    '	- DeniedExtensions: The extensions that won't be allowed.
    '		If it is empty then no restrictions are done here.
    '
    '	For a file to be uploaded it has to fulfill both the AllowedExtensions
    '	and DeniedExtensions (that's it: not being denied) conditions.
    '
    '	- FileTypesPath: the virtual folder relative to the document root where
    '		these resources will be located.
    '		Attention: It must start and end with a slash: '/'
    '
    '	- FileTypesAbsolutePath: the physical path to the above folder. It must be
    '		an absolute path.
    '		If it's an empty string then it will be autocalculated.
    '		Useful if you are using a virtual directory, symbolic link or alias.
    '		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
    '		Attention: The above 'FileTypesPath' must point to the same directory.
    '		Attention: It must end with a slash: '/'
    '
    ' - QuickUploadPath: the virtual folder relative to the document root where
    '		these resources will be uploaded using the Upload tab in the resources
    '		dialogs.
    '		Attention: It must start and end with a slash: '/'
    '
    '	 - QuickUploadAbsolutePath: the physical path to the above folder. It must be
    '		an absolute path.
    '		If it's an empty string then it will be autocalculated.
    '		Useful if you are using a virtual directory, symbolic link or alias.
    '		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
    '		Attention: The above 'QuickUploadPath' must point to the same directory.
    '		Attention: It must end with a slash: '/'
    '
    
    Dim ConfigAllowedExtensions, ConfigDeniedExtensions, ConfigFileTypesPath, ConfigFileTypesAbsolutePath, ConfigQuickUploadPath, ConfigQuickUploadAbsolutePath
    Set ConfigAllowedExtensions	= CreateObject( "Scripting.Dictionary" )
    Set ConfigDeniedExtensions	= CreateObject( "Scripting.Dictionary" )
    Set ConfigFileTypesPath	= CreateObject( "Scripting.Dictionary" )
    Set ConfigFileTypesAbsolutePath	= CreateObject( "Scripting.Dictionary" )
    Set ConfigQuickUploadPath	= CreateObject( "Scripting.Dictionary" )
    Set ConfigQuickUploadAbsolutePath	= CreateObject( "Scripting.Dictionary" )
    
    ConfigAllowedExtensions.Add	"File", "7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip"
    ConfigDeniedExtensions.Add	"File", ""
    ConfigFileTypesPath.Add "File", ConfigUserFilesPath & "file/"
    ConfigFileTypesAbsolutePath.Add "File", ""
    ConfigQuickUploadPath.Add "File", ConfigUserFilesPath
    ConfigQuickUploadAbsolutePath.Add "File", ""
    
    ConfigAllowedExtensions.Add	"Image", "bmp|gif|jpeg|jpg|png"
    ConfigDeniedExtensions.Add	"Image", ""
    ConfigFileTypesPath.Add "Image", ConfigUserFilesPath & "image/"
    ConfigFileTypesAbsolutePath.Add "Image", ""
    ConfigQuickUploadPath.Add "Image", ConfigUserFilesPath
    ConfigQuickUploadAbsolutePath.Add "Image", ""
    
    ConfigAllowedExtensions.Add	"Flash", "swf|flv"
    ConfigDeniedExtensions.Add	"Flash", ""
    ConfigFileTypesPath.Add "Flash", ConfigUserFilesPath & "flash/"
    ConfigFileTypesAbsolutePath.Add "Flash", ""
    ConfigQuickUploadPath.Add "Flash", ConfigUserFilesPath
    ConfigQuickUploadAbsolutePath.Add "Flash", ""
    
    ConfigAllowedExtensions.Add	"Media", "aiff|asf|avi|bmp|fla|flv|gif|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|png|qt|ram|rm|rmi|rmvb|swf|tif|tiff|wav|wma|wmv"
    ConfigDeniedExtensions.Add	"Media", ""
    ConfigFileTypesPath.Add "Media", ConfigUserFilesPath & "media/"
    ConfigFileTypesAbsolutePath.Add "Media", ""
    ConfigQuickUploadPath.Add "Media", ConfigUserFilesPath
    ConfigQuickUploadAbsolutePath.Add "Media", ""
    
    %>
    Flash dipendente

  7. #7
    Non so che dirti, a me fatte le modifiche che ti ho detto prima funziona, unica altra cosa da controllare è che ci sia la cartella "userfiles" dentro public e che nel file "fckeditor\editor\filemanager\connectors\asp\confi g.asp" ci sia impostato:
    codice:
    Dim ConfigUserFilesPath
    ConfigUserFilesPath = "/public/userfiles/"
    alla riga 35

  8. #8
    ho scaricato la nuova versione fckeditor e ho il tuo stesso problema non riesco ad effettuare l'upload di immagini .
    Sono su server aruba effettuo l'upload nella cartella public/userfiles cartella con i permessi
    ma nulla di fatto

    Qualcuno sa darmi un aiuto?

    grazie
    giro

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.