There are two ways to add a zip file:
You can add a zip file that you want to unzip within a page. The following steps are for this purpose. For each directory in the zip file, Oracle9iAS Portal creates a page and for each file, Portal creates a File item, Image item, Zip File item, or item based on a custom item type, as appropriate. The directory-file relationship of your file system is maintained in a page-item manner in your page group. For more information, see Working with Zip file items.
You can add a zip file to make it available for people to download (without displaying the Unzip link). Add the zip file as a File item, Simple File item, or as a custom item type based on the File item type. For more information, see Adding a file or document to a page.
You
must be logged on as a page owner or an authorized user with the
appropriate page or item-level privileges.
Navigate to the page on which you want to add the item.
Note: If you do not see the page that you want to work with, you may not have the appropriate page access privileges. See your page group administrator to gain access.
Switch to Edit mode.
Click
in the region in which you want to add the item.
Note:
If
(the add item icon) does not display next to the region, the region
may be a portlet region (and may contain portlets). In this case, you
cannot add items to this region.
From the Content Item Type list, choose Zip File.
Note: If you do not see Zip File in the list, the page group to which the page belongs may not allow zip files to be uploaded, or your administrator may not have selected this item type to display here. Contact your page group administrator for more information.
Click Next.
In the File Name field, browse or enter the name of the file.
In the Display Name field, enter the item's link text. This is what users click to view the item.
Click Finish to upload the zip file and return to the page.
Add the zip file to the page as described above.
Click the Unzip link next to the zip file.
Click
next to the Target Page
field, and select a page, or a tab on a page, on which you want to
display the contents of the zip file.
(Optional) Select Run Unzip In Background to run the extraction process in the background.
If you clear this check box, you will remain on this page until the contents of the zip file have been extracted to the target page.
Note: If the Run Unzip in Background option does not function properly, your system administrator may need to set JOB_QUEUE_PROCESSES in the init.ora file to greater than one.
In the Item Type section, select the type of items that you would like to create for the different types of files in the zip file. For example, you can specify that all of the images in your zip file will be extracted as File items instead of Image items.
If your zip file contains document files, such as *.doc, *.pdf, or *.htm, select an item type for these files in the File list. When the Bulk Load process is complete, an item of the type you selected is added in the target page for each file.
Note: The list of item types may include File, Simple File, Zip File, and custom item types based on file item types.
If your zip file contains image files, such as *.gif and *.jpg, select an item type for these files in the Image list. When the Bulk Load process is complete, an item of the type you selected is added in the target page for each file.
Note: The list of item types may include Image, Simple Image, Simple Image Map, File, Simple File, Zip File, and custom item types based on image item types.
If your zip file contains other zip files that do not end with a .zip extension, select an item type for these files in the Zip File list. When the Bulk Load process is complete, an item of the type you selected is added in the target page for each file. If your zip file contains other zip files that do end with a .zip extension, you do not need to select an item type here. Zip File items will be created automatically for each of the files.
Note: The list of item types may include File, Simple File, Zip File, and custom item types based on zip file item types.
In the Overwrite Or Rename Files section, choose whether to overwrite or rename existing files of the same name in the target page.
If item versioning ("Simple" or "Audit") is enabled at the page level on the target page, an additional option "Create New Version" displays. Choose this to create a new version of any existing file(s) that have the same name as those files being extracted into the target page.
Click Unzip to begin the file extraction process. This process may take several minutes depending on the number and size of the files. Do not extract another zip file while the extraction process is underway.
If you selected Run Unzip In Background, you will return to the page. If you did not select this option you will remain on the Bulk Load page.
After the extraction process is complete, read the Bulk Load Log for information about the pages and files created and added.
If you selected Run Unzip In Background, you can access the Bulk Load Log after the extraction process is complete by clicking Unzip next to the zip file.
Only zip files that are added as Zip File item types display the Unzip link. You cannot extract files from zip files that are added as File or Simple File item types.
Oracle9iAS Portal maintains the directory structure in zip files. If the zip file contains directories, Oracle9iAS Portal creates sub-pages inside the target page during the extraction process.
Item attributes such as Author, Description, Image, New Item Indicator, and so on are displayed in the page area only if they were chosen to display. For more information, see Choosing item attributes to display in a page region.
If you are uploading an HTML file with a title, the text between the <TITLE></TITLE> tag becomes the item's display name link.
What is an item?
What are item types?
Adding an item
Editing an item
Working with Zip File items