Link to home
Start Free TrialLog in
Avatar of pigmentarts
pigmentartsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Upload error could someone please help me with this

i have a system which uploads a image, it works fine local but online i just can not get it to work the ref is correct i asked the hosting comapny could anyone help please...

ps the file does have read/write on it

this is the error

------------

The destination "D:\Inetpubjkjjkjkj\vhosts\httpdocs\exquisite-jewellery\secure\images\departments\14.jpg" specified in the CFFILE tag is invalid.

The destination either does not exist or is not accessible by this tag.

-----------
Avatar of pigmentarts
pigmentarts
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

sorry the ref is D:\Inetpub\vhosts\httpdocs\exquisite-jewellery\secure\images\departments\ not the mess above that was when i was tested but it still DOES NOT WORK please help i need to finsihed this project
does no body have any ideas???????????????????????
Avatar of jtreher
jtreher

If the directory structure does exist then you shouldn't have any problems as long as the cffile tag is enabled and the coldfusion user account has permission to read/write to the directory and file.
You'll have to check with your hosting company to see if they have the cffile tag allowed on thier system. Also checking the full directory path including the drive... they may have a different drive specified for uploads. You can get the correct path from you hosting company, once you can confirm with them, what the correct path should be, then you should be good to go. Sometimes for security the hosting companies will not allow certain tags, so first thing is to check that, then to make sure with them, that your path is correct...

~trail
This happens to me many times, quadruple check to see if that directory exists!
Oh, and since you're uploading, you're not supposed to have a file at the end of the destination. It should strictly be "D:\Inetpub\vhosts\httpdocs\exquisite-jewellery\secure\images\departments\". If you are on a Unix machine, destinations are case sensitive, therefore check to see if the directories are the same casing.

For example, this would be correct: D:\Inetpub

This would not: D:\INETPUB

Be sure you are using the same case sensitive for every letter in each directory.
Also, besides what was mentioned - make sure that the host has granted you WRITE permissions to the place you are trying to write to.  If your code works locally then it is most likely a permission problem or security problem with the host (such as them not allowing the tag as trailblazzyr mentioned)

(NOTE - depending on the OS of the host you CAN have the file name at the end of the destination for an upload if you are specifying the name of the destination file.)
i have just used without cfinput to just input and it seemed to work with this cause problems do you think?
ASKER CERTIFIED SOLUTION
Avatar of mrichmon
mrichmon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial