• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Upload and Delete not working together

New Here ,
Apr 24, 2007 Apr 24, 2007

Copy link to clipboard

Copied

I have cfm app that is uploading a file from the client computer to a server directory successfully. Now i want to delete the file on the client computer after verifing upload. i have the app verifing upload, but i get an error when trying to delete file. the error indicates that syntax is bad, file is not present (which it is) or tag is invalid. i have been through the docs and have used the "result" attribute per documentation instructions when using two cffile tags in the same .cfm page. anyone ever run into this one? Solutions?
TOPICS
Advanced techniques

Views

237

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Apr 25, 2007 Apr 25, 2007
Azadi wrote:
> you can't delete a file on a client's computer!!!
> just imagine what could happen if you could do that! you come to my
> website, which runs a little cffile behind the scenes on pageload, and
> wipes your whole boot drive clean!!!
>
>

You could not do that well with just cffile. You would also need to use
cfdirectory!

A small bit of humor to reiterate that YOU CAN NOT DELETE FILES FROM THE
CLIENT! And it would be an incredibly bad idea if you could.

Votes

Translate

Translate
LEGEND ,
Apr 24, 2007 Apr 24, 2007

Copy link to clipboard

Copied

you can't delete a file on a client's computer!!!
just imagine what could happen if you could do that! you come to my
website, which runs a little cffile behind the scenes on pageload, and
wipes your whole boot drive clean!!!


--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 25, 2007 Apr 25, 2007

Copy link to clipboard

Copied

Azadi wrote:
> you can't delete a file on a client's computer!!!
> just imagine what could happen if you could do that! you come to my
> website, which runs a little cffile behind the scenes on pageload, and
> wipes your whole boot drive clean!!!
>
>

You could not do that well with just cffile. You would also need to use
cfdirectory!

A small bit of humor to reiterate that YOU CAN NOT DELETE FILES FROM THE
CLIENT! And it would be an incredibly bad idea if you could.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 25, 2007 Apr 25, 2007

Copy link to clipboard

Copied

LATEST
okay, okay. point taken. hadn't considered that due to the fact that my app is on my intranet. please don't hate me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation