Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 17 total
Thread Access denied saving from a module
Thu, Sep 21 2017 10:00 PMPermanent Link

KimHJ

Comca Systems, Inc

I had this working before, but now I get Access denied when I try to save to a local folder from a module.
In debug and on my web server.

Both Delphi XE6 and the EWB  are set to "Run as Administrator". I even tried to save to the public folder no luck.

ImageStream.SaveToFile(UploadFolder);

Kim
Fri, Sep 22 2017 10:16 AMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Kim,

Perhaps the permissions of that folder have changed - have you checked that out?
--
Fernando Dias
Fri, Sep 22 2017 10:38 AMPermanent Link

KimHJ

Comca Systems, Inc

Fernando Dias wrote:

>>Perhaps the permissions of that folder have changed - have you checked that out?<<


The permission is set to Everyone Read/Write.

Kim
Fri, Sep 22 2017 11:24 AMPermanent Link

Walter Matte

Tactical Business Corporation

UploadFolder is a full path and filename?

Walter
Fri, Sep 22 2017 12:26 PMPermanent Link

Fernando Dias

Team Elevate Team Elevate


What about anti-virus software... it mat be blocking writes.

--
Fernando Dias
[Team Elevate]
Fri, Sep 22 2017 1:59 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Kim,

<< I had this working before, but now I get Access denied when I try to save to a local folder from a module.
In debug and on my web server.

Both Delphi XE6 and the EWB  are set to "Run as Administrator". I even tried to save to the public folder no luck.

ImageStream.SaveToFile(UploadFolder); >>

Can you create/run a simple Delphi test application and perform the same operation without issue ?

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Sep 25 2017 1:03 PMPermanent Link

KimHJ

Comca Systems, Inc

Tim Young [Elevate Software] wrote:

<<Can you create/run a simple Delphi test application and perform the same operation without issue ?>>

I added a function to write a log file using TextFile (AssignFile, Append and Write) and now I don't get the access denied or maybe the computer liked me today because I had hard time with Irma.

Now I just have a new problem. When running it on the Web Server using TFileComboBox I only get the image name in the TFileComboBox and I use that file path to set the URL to the TImage with the result that the TImage is blank.

Is there away to get the file path from the TFileComboBox?
I don't see any.

Thanks,
Kim
Mon, Sep 25 2017 1:32 PMPermanent Link

KimHJ

Comca Systems, Inc

It's saving the image in the right location on the Web Server, I just can't see it before saving it. I can see it on the local server.
Tue, Sep 26 2017 4:20 AMPermanent Link

Matthew Jones

KimHJ wrote:

> Now I just have a new problem. When running it on the Web Server using TFileComboBox I only get the image name in the TFileComboBox and I use that file path to set the URL to the TImage with the result that the TImage is blank.

Could you be more detailed in your explanation please? You are talking about a module, and a web browser component. The links and your code between them are not at all clear. Perhaps a snippet of code from each might help us understand. I often find that putting together an explanation of my problem in concise detail actually helps me understand and fix my problem anyway.

--

Matthew Jones
Tue, Sep 26 2017 7:38 PMPermanent Link

KimHJ

Comca Systems, Inc

"Matthew Jones" wrote:

<<Could you be more detailed in your explanation please? You are talking about a module, and a web browser component. The links and your code between them are not at all clear. Perhaps a snippet of code from each might help us understand. I often find that putting together an explanation of my problem in concise detail actually helps me understand and fix my problem anyway.>>


In the web application I have a TFileComboBox and A TImage. When the user selects an image to upload from the TFileComboBox. On the TFileComboBox I have in the OnChange event the following code:

Image1.Url := FileComboBox1.Text;

It works fine on my computer and I see the whole path in the TFileComboBox, but when I run it on the Web Server I only see the Image name in the TFileComboBox . The image will upload I'm just missing the preview.

Kim
Page 1 of 2Next Page »
Jump to Page:  1 2
Image