<!--FCKeditor用户附件上传路径-->
<add key="FCKeditor:UserFilesPath" value="/OfficeChannel/UploadFiles/"/>
Session["FCKeditor:UserFilesPath"] = NewPathFile; //FCKeditor上传路径
NewPathFile ="~\\TipsChannel\\tips_page\\20080925\\Tips_images\\"
20080925自动生成的
这样之后我上传图片能上传到指定位置
图片位置:src="/OfficeChannel/TipsChannel/tips_page/20080925/Tips_images/Winter(2).jpg"
但是我的全路径是这个E:\工作目录\OfficeChannel\OfficeChannel\TipsChannel\tips_page\20080925\Tips_images
怎么修改呢?
我想把 Session["FCKeditor:UserFilesPath"]弄成相对路径但是出错图片都上传不上去,请大家指点点让他上传之后还能显示正确的位子,如果要是上传到服务器地址假如是10.11.0.123路径应该怎么设置呢?谢谢
<add key="FCKeditor:UserFilesPath" value="/OfficeChannel/UploadFiles/"/>
Session["FCKeditor:UserFilesPath"] = NewPathFile; //FCKeditor上传路径
NewPathFile ="~\\TipsChannel\\tips_page\\20080925\\Tips_images\\"
20080925自动生成的
这样之后我上传图片能上传到指定位置
图片位置:src="/OfficeChannel/TipsChannel/tips_page/20080925/Tips_images/Winter(2).jpg"
但是我的全路径是这个E:\工作目录\OfficeChannel\OfficeChannel\TipsChannel\tips_page\20080925\Tips_images
怎么修改呢?
我想把 Session["FCKeditor:UserFilesPath"]弄成相对路径但是出错图片都上传不上去,请大家指点点让他上传之后还能显示正确的位子,如果要是上传到服务器地址假如是10.11.0.123路径应该怎么设置呢?谢谢
<add key="FCKeditor:UserFilesPath" value="/UploadFiles/"/>
string NewPathFile = @"~\TipsChannel\tips_page\" + Session["text"].ToString() + @"\Tips_images\";//
Session["FCKeditor:UserFilesPath"] = NewPathFile;
附件上传地址
<p><img height="113" width="150" src="/OfficeChannel/TipsChannel/tips_page/20080925/Tips_images/Sunset(2).jpg" /></p>
<p><img height="113" width="150" alt="" src="/OfficeChannel/TipsChannel/tips_page/20080925/Tips_images/Water lilies(1).jpg" /></p>不用~/的用../的
<add key="FCKeditor:UserFilesPath" value="/UploadFiles/"/>
string NewPathFile = @"..\TipsChannel\tips_page\" + Session["text"].ToString() + @"\Tips_images\";//
Session["FCKeditor:UserFilesPath"] = NewPathFile;
<p><img height="113" width="150" src="/OfficeChannel/fckeditor/editor/filemanager/connectors/TipsChannel/tips_page/20080925/Tips_images/Water lilies.jpg" /></p><p><img height="113" width="150" alt="" src="/OfficeChannel/fckeditor/editor/filemanager/connectors/TipsChannel/tips_page/20080925/Tips_images/Water lilies(1).jpg" /></p>什么都不用的<add key="FCKeditor:UserFilesPath" value="/OfficeChannel/UploadFiles/"/>
<p><img height="113" width="150" alt="" src="/OfficeChannel/UploadFiles/Water lilies.jpg" /></p>