Uploading Resources to the Web Resource Repository

Prerequisites

You have been assigned the Content Administrator role.

Context

You can upload Web resources to the Web Resource Repository, so that they can be used by different portal components and applications. When you upload resources, they are saved as objects in the Portal Content Directory (PCD) and are also copied to the file system of the portal server (in the same folder hierarchy, and synchronized with any changes that you make). This allows the consumption of resources at runtime using relative paths. For example, a .css file that is saved in the Web Resource Repository can use a resource that is also saved in the Web Resource Repository, by specifying the following in one of its classes: background: url('../images/logo.png') .

Following are some guidelines for selecting resource files to upload:

  • All resource file names that you want to upload must contain only legal characters ( A-Z , 0-9 , . , _ , % , ~ , - , ( , and ) )
  • Maximum file name length is 100 characters
  • To render, in Microsoft Internet Explorer, icons with an .ico extension that are saved in the Web Resource Repository, you need to enable support for .ico images in SAP NetWeaver Administrator.

In SAP NetWeaver Administrator, navigate to Configuration  Infrastructure  Java System Properties  Services  HTTP Provider. To the Mime property, add the following value: \{.ico,image/x-icon\} .

  • Keep the folder hierarchy depth minimal, because the maximum file path for resource file storage is 120 characters (assuming that the root Web Resources folder is located here:C:\usr\sap\ROM\J00\j2ee\cluster\apps\sap.com\com.sap.portal.resourcerepository\servlet_jsp\com.sap.portal.resourcerepository\root\repo)

Note

To upload multiple resources simultaneously, add them to a compressed (.zip) file and then upload the compressed file.

If you have configured the Virus Scan Interface on your AS Java, all resource files are automatically scanned during the upload process.

Procedure

  1. Choose Content Administration  Web Resource Repository.
  2. In the Portal Catalog, expand the Web Resources node and navigate to the folder into which you want to upload resources.
  3. From the context menu of the selected folder, choose Upload Resources . The first page of the Upload Resources wizard appears.
  4. In the Resource File field, choose the Browse button and select the file to upload from the file system. Choose Open .
  5. Choose Add to Upload Table . The selected file is added to the list of files to be uploaded. If you selected a compressed (.zip) file in the previous step, the contents of the file are extracted and added to the table, each file or folder in a single row.

In the list of files to be uploaded, each file has a status that indicates whether it can be uploaded. If a file cannot be uploaded, the reason is given (for example, a file may contain invalid characters or it may exceed the maximum file size allowed). For information about changing the maximum file size, see Modifying the Uploadable File Size . Use the Filter by Status field to more easily see the problematic files. A summary of the number of files with each status is displayed at the top of the table.

Note

To remove a resource or folder from the list of files to be uploaded, select it in the upload table and choose Remove . If you select a folder, all resources and folders located below that folder are removed from the list.

  1. By default, new files with duplicate names in the same folder in the Web Resource Repository are not uploaded during the upload process. To upload files with duplicate names and overwrite the existing files in the Web Resource Repository, choose the Overwrite existing resources checkbox.

Note

This option applies to all the duplicate files in the upload table.

Checks for duplicate resource names are not case-sensitive, meaning that My.png and my.png are treated as duplicate files.

  1. Choose Start Upload . The upload process starts, and the files with the valid (green) status are uploaded.

When the upload process is complete, the second page of the Upload Resources wizard appears. This page shows a list of all the files that were uploaded, and those that were not uploaded. A summary of the number of files that were and were not uploaded is displayed at the top of the table. If a file was not uploaded, the reason is given. Use the Filter by Status field to more easily see the files that were not uploaded.

You can now see the added resource files in the Portal Catalog, in the folder to which you uploaded them.

  1. To upload additional files, choose Restart Wizard ; otherwise choose Close .

SAP Portal 上传资源到WRR的更多相关文章

  1. 第三百八十七节,Django+Xadmin打造上线标准的在线教育平台—网站上传资源的配置与显示

    第三百八十七节,Django+Xadmin打造上线标准的在线教育平台—网站上传资源的配置与显示 首先了解一下static静态文件与上传资源的区别,static静态文件里面一般防止的我们网站样式的文件, ...

  2. 如何使用电骡eMule上传资源

    1 在电脑中创建一个文件夹专门为上传资源使用 在里面放入任意文件并右击显示ED2K链接   链接效果如下 2 登陆verycd网站,并点击上传资源 复制ED2K地址并选择分类  

  3. django 网站上传资源的显示与配置

    1.  上传资源的配置 1. 首先在项目里创建一个名称叫media的文件夹专门保存用户上传 2. settings.py文件配置上传资源的路径 # 上传资源路径,如果图片,上传文件等 MEDIA_UR ...

  4. 【UEditor】 UEditor整合项目上传资源到阿里云服务器

    目录 关于此文 下载源码 JSP代码 Java代码 阿里云jar包引入配置 成功啦! 回到顶部 关于此文 项目中要实现编辑器生成带格式的html文档,存入模板,最后生成html的URL,所以选择了UE ...

  5. CSDN删除上传资源的办法

    转自网友:http://blog.csdn.net/ssergsw/article/details/12489101 我按照下面的方法一试,果然成功了. 昨天晚上进行测试,上传了一个压缩包和大家分享, ...

  6. Wordpress上传资源报HTTP错误

    简述 在公司内部搭建内部视频学习网站,经过对比选择了wordpress进行站点搭建.但是在上传视频遭遇到了各种问题,特将此处理过程进行记录. 原因排查 1.上传一个十几兆mp4的文件上传进度到达百分之 ...

  7. C# 之 向服务器上传资源

    首先写客服端,winform 应用 或者 WPF 应用 模拟一个post提交: /// <summary> /// 将本地文件上传到指定的服务器(HttpWebRequest方法) /// ...

  8. Maven私服(Nexus)资源上传下载

    1.settings.xml (向私服上传资源需要) <!-- Snapshot包的管理/Releases包的管理/第三方包管理--> <server> <id>l ...

  9. asp.net core系列 69 Amazon S3 资源文件上传示例

    一.  上传示例 Install-Package AWSSDK.S3 -Version 3.3.104.10 using Amazon; using Amazon.Runtime; using Ama ...

随机推荐

  1. [Usaco2013 Nov]No Change

    Description Farmer John is at the market to purchase supplies for his farm. He has in his pocket K c ...

  2. 初识mybatis之入门案例

    我也是自学了一下,在idea中基于maven的mybatis的配置.有什么不对的地方,请指正,谢谢. 1.1咋们先来配置测试一下,配置mybatis的图解: 1.2 pom.xml需要mybatis的 ...

  3. JDBC和数据库连接池

    JDBC是一种用于执行SQL语句的Java API,可以为多种关系数据库提供统一访问,它由一组用Java语言编写的类和接口组成. ​ ● JDBC ​ ● C3P0 ​ ● DRUID 一.JDBC ...

  4. C++学习笔记(二)之数组

    数组作形参时,实际传入数组首地址 void print(const int*) void print(const int []) ]) 三种方法等价

  5. Tomcat无法clean,无法remove部署的项目

    错误: 对部署在Tomcat下的项目进行clean操作,总是提示Could not load the Tomcat server configuration,错误信息如图: 解决: 原来是将Serve ...

  6. [转]MapReduce浅析

    本文转自http://edisonchou.cnblogs.com/ 一.什么是MapReduce MapReduce是Google的一项重要技术,它首先是一个编程模型,用以进行大数据量的计算.对于大 ...

  7. PHP7 上传文件报错 Internal Server Error 解决方法

    打开Apache配置httpd.conf.在最后添加FcgidMaxRequestLen指令一个足够大的值(以字节为单位),例如 FcgidMaxRequestLen 100000000 最后重新启动 ...

  8. Hibernate+Spring整合开发步骤

    Hibernate是一款ORM关系映射框架+Spring是结合第三方插件的大杂烩,Hibernate+Spring整合开发效率大大提升. 整合开发步骤如下: 第一步:导入架包: 1.Hibernate ...

  9. mysql 性能优化索引、缓存、分表、分布式实现方式。

    系统针对5000台终端测试结果 索引 目标:优化查询速度3秒以内 需要优化.尽量避免使用select * 来查询对象.使用到哪些属性值就查询出哪些使用即可 首页页面: 设备-组织查询 优化 避免使用s ...

  10. HDU_1548_A strange lift

    题意:一部电梯(共top层),每一楼有一个数字k,在该层只能上k层或者下k层(up和down按钮),问从当前层到目标层按按钮的最小次数. 分析:广度优先搜索. 总结:初写BFS,仿照别人的代码,这方面 ...