在讨论板中插入图片时指定文件夹。 [英] Specifying a folder when inserting a picture in the discussion board.
问题描述
您好,
有人知道在从
本地PC插入图片到"身体"时是否可以指定文件夹/如何指定文件夹; SharePoint Online讨论区(经典用户界面)中的列(增强型富文本)?
在默认设置中,出现一个对话窗口,询问目标库,之后是"插入" - >
$
"图片" - > "来自计算机"菜单。我需要一种方法让我的最终用户在"文档"中指定一个文件夹。 library,
而不是root。
Does anyone know whether/how I can specify a folder when inserting pictures from
local PC, to the "Body" column ( Enhanced rich text ) in the SharePoint Online discussion Board (classic UI) ?
In the default setting, a dialogue window appears asking the destination library, after "Insert" ->
"Picture" -> "From computer" menu. I need a way that my end-users to specify a folder inside the "Document" library,
instead of the root.
如果我可以以编程方式指定文件夹(例如,根据讨论项目的ID号),我不需要<
" ;目的地图书馆"完全是保管箱菜单。
可以吗?
谢谢你$ b
If I can programatically specify the folder (e.g. based on the Id number of the discussion item), I don't need
the "Destination Library" dropbox menu at all.
Would it be possible ?
Thank you
推荐答案
您好,
在SharePoint Online中,图片上传对话框是iframe来自SharePoint Online Server中_layouts文件夹的Upload.aspx。
In SharePoint Online, the Image Upload dialogue is a iframe from the Upload.aspx of _layouts folder in SharePoint Online Server.
我们无权访问此页面,因为它由Microsoft Online维护:
We have no permission to access this page, as it is maintained by Microsoft Online:
所以我们无法添加子文件夹名称通过JavaScript代码进入此下拉列表。
So we can't add sub folder name into this dropdown list by JavaScript code.
解决方法是通过file.MoveTo方法移动文件以在文件夹之间移动文件:
A workaround is to move file by file.MoveTo method to move the file between folders:
示例代码:
listTitle =" Documents"
listTitle = "Documents"
sourceFolder =" /共享文档/存档"
sourceFolder = "/Shared Documents/Archive"
这篇关于在讨论板中插入图片时指定文件夹。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!