Hello,
I'm using a webhtmleditor, and i have a problem with preview images, after uploading them.
1. I have define a remote url for the UploadedFilesDirectory (ex: http://216.321.211.321/uploads)
2. I sucessfully upload contents to that folder (by the insert image page)
PROBLEM: After uploading the image, and selecting it, the preview doesnt work!!!!
Can any one help?
What is the type of your IP internal or external? Maybe you have some issue with folder rights. Also I am not sure that uploading files to locations outside your web-site folder is supported.
Thanks.
thank you for the anwser, but maybe i did not explain correctly my issue.
The webhtmleditor as a property that we can define a complete url such as http://www......, for the UploadedFilesDirectory.
I have my application and upload folder in the same server but in diferent location.
I have tried Me.WebHtmlEditor1.UploadedFilesDirectory = "http://213.51.XX.XX/folder" but when i call the upload window i have a path error upload could not be determined.
In webhtmleditor i define the UploadedFilesDirectory like Me.WebHtmlEditor1.UploadedFilesDirectory = "e:/folder"
when i call the upload window, in the rigth part of the window i have all files of the especified folder, but when i choose one file (image or flash) the preview is not available, an the source file is something like e:/folder/fil.
My project is stuck with this problem... with this information can you help?
As far as I understand you are trying to access location that is outside of the site and has no rights. You can try to put UploadedFilesDirectory in virtual folder of the site. If the location is inside the root folder of your WebSite, please use relative paths, e.g. "uploads", or "~/uploads". Absolute paths like "e:\sites\mysite\uploads" are not supported, and I am not sure IPs are supported as well.Hope this helps.
Issue: Preview & insert Image
This code below works (a virtual directory outside of site):
WebHtmlEditor1.UploadedFilesDirectory = "/MarketingImageVirDir/MarketingImages/";
This works too (absolute path)
WebHtmlEditor1.UploadedFilesDirectory = "C://inetpub//wwwroot//MarketingImages//";
My problem is I cant get it to work with specific server name\virtual directory on the same as well as different server (must for my project requirement).
These do not work: (Same server as the site)
WebHtmlEditor1.UploadedFilesDirectory = "\\wobdev02/MarketingImageVirDir/MarketingImages/";
WebHtmlEditor1.UploadedFilesDirectory = "\\wobdev02//MarketingImageVirDir//MarketingImages//";
WebHtmlEditor1.UploadedFilesDirectory = "\\\\wobdev02/c$/inetpub/wwwroot/MarketingImages/";WebHtmlEditor1.UploadedFilesDirectory = "////wobdev02//c$//inetpub//wwwroot//MarketingImages//";
Please help.
I am facing same type of problem.
Have you found any solution?