This is a migrated thread and some comments may be shown as answers.

Image Manager can edit but not Upload

1 Answer 100 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 13 Oct 2015, 05:18 AM

Image Manager can see files, folder, and files in folders. It can also edit any Image and save it successfully. Only problem is uploading. Always get "Access to path is denied" on production server. Local running everything works. Doesn't make sense that I can edit a file that already exists and save it as a new one, but I cannot upload one. Thanks for any help.

 

I have a 2012 server, ApplicationPoolIdentity. Created a folder on the server and created a Virtual Directory to it. Gave Everyone Full permissions until I can get it working then will narrow down. Code to set path is here...

 

string path = "~/emailAssets/" + "test";
                DebugHandler.DebugMessage = "Checking and Creating Directory: " + path;
                try
                {
                    if (!Directory.Exists(Server.MapPath(path)))
                        Directory.CreateDirectory(path);
                }
                catch { throw new Exception("Could not access or create Email Assets directory. Images and Documents will not be available"); }
                string[] paths = new string[] { path };

                // Setup RadEditor
                tbBody.ImageManager.EnableAsyncUpload = true;
                tbBody.ImageManager.ViewPaths = paths;
                tbBody.ImageManager.UploadPaths = paths;
                tbBody.ImageManager.DeletePaths = paths;

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 15 Oct 2015, 10:16 AM
Hi Chad,

With the AsyncUpload enabled you should consider the temporary file created by the AsyncUpload control. Typically, it is defined to be generated in the App_Data folder of the app. Therefore, this folder should permissions for the application to write. 

You can read more about that here—http://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/overview.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
Chad
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or