selecteer plaatje pagina:
adddocument.cfm (upload pagina)
Dit was de laatste versies maar nog steeds elke keer op d emac (niet op de pc) dezelfde melding:
Error processing CFFILE
The directory specified in the DESTINATION attribute of the CFFILE tag (D:\InetPub\wwwroot\egpn\home\images\nieuws \) is not valid.
The directory either does not exist or is not accessible by the
ColdFusion service.
The error occurred while processing an element with a general
identifier of (CFFILE), occupying document position (15:1) to (15:97)
in the template file
D:\InetPub\wwwroot\egpn\admin\admin_index\egpn_illustraties\adddocument.cfm.
____
Het lijkt alsof er die spatie na nieuws het probleem is
maar ik kan niet ontdekken hoe die er in komt...
Is there a cf-doctor is the house ?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| <FORM ACTION="adddocument.cfm"
ENCTYPE="multipart/form-data"
METHOD=post NAME="nieuw">
<INPUT TYPE="file" NAME="Uploadfile" SIZE="30">
<SELECT NAME="imagemap">
<OPTION VALUE="nieuws">Nieuws</OPTION>
<OPTION VALUE="hoofdstuk">Hoofdstuk</OPTION>
<OPTION VALUE="kop">Kop (pagina titel)</OPTION>
<OPTION VALUE="zending">Zending</OPTION>
<OPTION VALUE="fotoboek\klein">Fotoboek</OPTION>
<OPTION VALUE="fotoboek\groot">Fotoboek vergroting</OPTION>
</SELECT>
<input type="submit">
</form> |
adddocument.cfm (upload pagina)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| <cfset uploaddir=#GetDirectoryFromPath(GetTemplatePath())#>
<cfset x=findNoCase("admin",uploaddir)>
<cfset sitedir=#left(uploaddir,(x-1))#>
<CFSET Categorie = replace(imagemap, "\", "", "ALL")>
<cfset pathfile = sitedir&"home\images\"&imagemap>
<cfif #uploadfile# is not "">
<CFFILE ACTION= "UPLOAD"
FILEFIELD = "UploadFile"
DESTINATION = "#pathfile#"
NAMECONFLICT="SKIP">
<CFIF #FILE.FileExisted# is "no">
<cfoutput>
Bestand = #FILE.ClientFile#
Vandaag = #Now()#
waar = #FILE.ServerDirectory#\#FILE.ServerFile#
</cfoutput>
<CFQUERY NAME="CreateDocumentRecord" DATASOURCE="egpn">
INSERT INTO egpnfoto (Bestandsnaam, DatumGepubliceerd,
UploadedToPath, Categorie)
VALUES ('#Replace(cffile.serverfile," ","_","All")#', #Now()#,
'#FILE.ServerDirectory#\#FILE.ServerFile#','#categorie#')
</CFQUERY>
de afbeelding is upgeload
</cfif>
</cfif> |
Dit was de laatste versies maar nog steeds elke keer op d emac (niet op de pc) dezelfde melding:
Error processing CFFILE
The directory specified in the DESTINATION attribute of the CFFILE tag (D:\InetPub\wwwroot\egpn\home\images\nieuws \) is not valid.
The directory either does not exist or is not accessible by the
ColdFusion service.
The error occurred while processing an element with a general
identifier of (CFFILE), occupying document position (15:1) to (15:97)
in the template file
D:\InetPub\wwwroot\egpn\admin\admin_index\egpn_illustraties\adddocument.cfm.
____
Het lijkt alsof er die spatie na nieuws het probleem is
maar ik kan niet ontdekken hoe die er in komt...
Is there a cf-doctor is the house ?