How to upload content in OLM server
Hello everyone. I have been able to setup an OLM content server using apache and Jserv.
The problem I have now is what to do next. I have tried to define a Learning Object but I assumed this screen would have a "Choose File.." option where I would select a file to upload to the server. Instead all I can see is a section for Directory and for initial file.
Does this mean I have to upload files I want to use for my content to my apache server manually or am I missing something here?
We want to be able to present users with reading material after which a test is displayed.
Many thanks
Hi, just an update:
I created the learning object and uploaded a file. I then got a message saying the file upload was successful.
The upload has succeeded. If you uploaded a zip file, it has been unzipped into the specified directory.
But when I look in the rootdir folder I created, nothing is there. Why does OLM say the upload is successful when there is nothing in the folder? Any thoughts on this?
Thank you
Similar Messages
-
How to upload a file into server using j2ee jsp and servlet with bean?
How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
Anyone help me please!u don't need j2ee and struts to do file uploading. An example is as such
in JSP. u use the <input> file tag like
<input type="file"....>You need a bean to capture the file contents like
class FileUploadObj {
private FormFile srcFile;
private byte[] fileContent;
// all the getter and setter methods
}Then in the servlet, you process the file for uploading
* The following loads the uploaded binary data into a byte Array.
FileUploadObj form = new FileUploadObj();
byte[] byteArr = null;
if (form.signFile != null) {
int filesize = form.srcFile.getFileSize();
byteArr = new byte[filesize];
ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
bytein.read(byteArr);
bytein.close();
form.setFileContent(byteArr);
// Write file content using Writer class into the destination file in the server.
... -
How to upload logo from application server
Hi all,
Plz show me the way how to upload logo from application server into sap script.
What is NGT.
Thanks in advance
VenkatHi
You have to import your logo in SAP by SE78 before using it in a SAPSCRIPT.
So have you done it?
If yes, it depends on how you have imported the logo:
- As std text:
INCLUDE <LOGO TEXT> OBJECT TEXT ID ST LANGUAGE <LANGUAGE>
- As graphic:
BITMAP <LOGO GRAPHIC> OBJECT GRAPHICS ID BMAP TYPE BCOL
Max -
How to upload file from Application Server?
Dear Friends,
How to upload file from Application Server?
Plz. with example...
Regards,
Dharmeshhi,
check the code for upload from application server.
tables: kna1.
types: begin of s_file,
customer type kna1-kunnr,
country type kna1-land1,
name type kna1-name1,
region type kna1-regio,
end of s_file.
*--Internal tables
data: it_file type s_file occurs 0 with header line.
*-- Selection screen
selection-screen: begin of block b1 with frame title text-001.
parameter: p_file type rlgrap-filename default 'C:/customer.txt'
obligatory.
selection-screen: end of block b1.
*-- At selection screen
at selection-screen on value-request for p_file.
perform file_help using p_file.
*-- Process File
start-of-selection.
perform upload_file using p_file.
*-- write File data to o/p
end-of-selection.
perform write_data.
*& Form file_help
form file_help using p_p_file.
data: l_filepath type ibipparms-path.
call function 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
importing
file_name = l_filepath
p_p_file = l_filepath.
endform. " file_help
*& Form upload_file
form upload_file using p_p_file.
call function 'WS_UPLOAD'
exporting
filename = p_p_file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = it_file
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
others = 11
if sy-subrc <> 0.
message i001.
endif.
endform. " upload_file
*& Form write_data
form write_data .
loop at it_file.
write:/ it_file-customer, it_file-country, it_file-name,
it_file-region.
endloop.
endform.
regards,
keerthi. -
How can I upload content on Itunes U?
Hi, just an update:
I created the learning object and uploaded a file. I then got a message saying the file upload was successful.
The upload has succeeded. If you uploaded a zip file, it has been unzipped into the specified directory.
But when I look in the rootdir folder I created, nothing is there. Why does OLM say the upload is successful when there is nothing in the folder? Any thoughts on this?
Thank you -
How to upload file in a server
Hi,
How to upload file to server through reporting. Plz guide me and what would be the probable code.
ThanksHi,
Try this Report Program.
*& Report ZUPLOADTAB *
*& Example of Uploading tab delimited file *
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
Regards,
Padmam. -
How to upload my page in server
Hi all,
i my production server ,there is two node (bd,web) so there is two java_top is there and two mds_to.
So how I upload my page and Controler, will I upload the file two time or how?
Please Help me on this.
Regards
RabindraHi Anand
The code is:
76 line starts here:
try
System.out.println("subParam====>>>>>" + subParam);
projectDetails = new ProjectDetails("@PMIS_ID,@Type", queryParam);
if(projectDetails == null)
throw new Exception("EDMS Query Exception : Details Object Empty : " + projectDetails.toString());
subParam = projectDetails.getSubItemType(phase);
queryParam = projectDetails.getEDMSQueryAttributes("PMS_Project_Folder", subParam);
System.out.println("queryParam====>>>>>" + queryParam);
catch(Exception e)
queryError = e.getMessage();
System.out.println("queryError===========>>>>>>>>>>>>>>>>>>>>" + queryError);
System.out.println("Exception==>>################" + e);
that mean it did not find the PMIS_ID but it is working fine in dev...
Regards
Rabindra -
How to Upload Smartforms from Application Server
Hi Guys,
I have to upload the SMARTFORMS in to the System.That can be done as follows:
1- Tcode - Smartforms
2- Utilities -> Upload form
3- Give form Name
4- Give path of Form on presentation server and upload.
But I have to give the path of Form from the Application Server. As i have all the forms to be uploaed in New system on the Application Server.
I will be writing the program to program to read XML file(smartform) from application server to internal table and then upload it in the System.
Please let me know if it is possible to upload Smartforms from Application Server?
Regards
SandeepVinod,
Thanks for the reply.
But Actually I want to Automate this process of Uploading the Smartforms.
So I want to directly upload it from Application server.
As it is not possible to upload the Smartforms from Presentation Server Automatically.
In this human Intervention will be required. -
How to Upload a File to Server(JSP - Tomcat)?
Hi,
I want to upload a file to Server(Where the Tomcat is Running) to a particular directory.Let it be \tomcat\webapps\exapmles\Viki\.But note i dont have rights to map the drive from CLient side.I want to upload the file from client side to the unknwn server to a particular directory
Please Help me
Thanks in advancehttp://jakarta.apache.org/commons/fileupload/
-
How to upload file on Application Server with Forms 6i?
Please, I need to upload .csv file from local to Application Server, I think to use .jsp application, but I don't know where I had to put it...Apache can't read .jsp file without Tomcat? If I launch my .jsp file from Apache/htdocs directory can't view .jsp code (Method Not Allowed)...method is POST...any idea? Thanks in advance!
Hi,
You could write a java bean to get the file from the client and to upload to App Server. And, you simply use it in Forms 6i.
Also, you could use d2kwutil (not tried though. you could search this forum and get an idea of that).
Of course, For your information, You could use WebUtil (in Forms 10g / 10.1.2) which has the functionality.
HTH.
Regards,
Arun -
How to upload data from application server
Hi,
please help me out in uploading the data from application server which is a tab delemited file into an internal table.
Thanks
kumarhi,
Use this sample code as an example.
table declaration
tables: mara.
*data declaration
data: begin of it_lfa1 occurs 0,
vendor like lfa1-lifnr,
land1 like lfa1-land1,
name1 like lfa1-name1,
ort01 like lfa1-ort01,
end of it_lfa1.
selection screen
selection-screen: begin of block b1 with frame.
parameters: p_file type rlgrap-filename obligatory.
selection-screen: end of block b1.
at selection screen
at selection-screen on value-request for p_file.
*& start-of-selection
start-of-selection.
perform transfer_file using p_file.
perform write.
*& Form transfer_file
text
-->P_P_FILE text
form transfer_file using p_p_file.
data: l_message(30) type c.
***opening dataset for reading
open dataset p_p_file for input in text mode encoding default message
l_message.
if sy-subrc ne 0.
message i001(zerr2) with p_p_file.
endif.
*******transferring data from file to app server.
do.
read dataset p_p_file into it_lfa1.
if sy-subrc = 0.
append it_lfa1.
clear it_lfa1.
else.
exit.
endif.
enddo.
*******closing dataset
close dataset p_p_file.
endform. " transfer_file
*& Form write
text
--> p1 text
<-- p2 text
form write .
loop at it_lfa1.
write:/ it_lfa1-vendor,
it_lfa1-land1,
it_lfa1-name1,
it_lfa1-ort01.
endloop.
endform. " write
Thanks
Aneesh. -
How to upload images in glassfish server
i using Netbean 6.0 and glassfish server
i can using uploadbean 1.9 because it it support to glassfish server
Thank
sevenloni using Netbean 6.0 and glassfish server
i can using uploadbean 1.9 because it it support to glassfish server
Thank
sevenlon -
How to upload content to Notebook app?
I've got a list on my computer that I want to be able to view and edit on my phone (an LG G2). It's currently stored as a Microsoft Word file, but I could convert it to plain text without losing a lot of data. If I edit the file on the phone I need to be able to move it back to the computer and view and edit it there (not necessarily with Word).
It seems to me that the built-in Notebook app is the natural tool for managing this file, but I can't find any instructions for moving the data from the computer to the phone (or for moving it back in usable form). I see that I can back up a Notebook file on the computer, but I apparently can't do anything with it once I've backed it up, except restore it to the phone.
What's the missing link here? Is there a way to do what I want with Notebook, or will I have to find a different app?You have a file and you want access from your computer and your phone to edit this file. The file needs to be stored in the "cloud" - in a location accessible to both devices, and not locally on either device, since that would make it inaccessible to the other.
There are several "apps" or storage options that you can access from both your computer and your phone - Google drive is one, others are Evernote, Dropbox, Cubby, Skydrive ...
The other option is to email the file to yourself - edit on the phone and email it back to pick up on the computer. This strikes me as more of the "digging under the fence" than using cloud storage. I'm not familiar with Notebook, but your description of "I can back up a Notebook file on the computer, but I apparently can't do anything with it once I've backed it up, except restore it to the phone." sounds to me like it is storing the file in a place accessible to both the computer and the phone app ... can you edit it on the phone in the Notebook app? -
How to upload and down load Document from Server in Webdynpro Java
Hi,
I have to upload and download document to the server and from the server.
The examle and the sample application which is available in SDN is not helpful as its about uploading and downloading from the application context.Please let me know how to upload/download from teh server.
SandipHi sandip,
I have same requirement.If u get any source please let me know.
reagrds,
Anuradha -
Hi,
I want to upload a zip file in some server location,till now i have below code,but not able to get any clue how to upload zip file to server when user press Begin button.
Can someone please help me?
>
JSP code:
<af:inputFile label="Upload:"
valueChangeListener="#{ifarm.fileUploaded}"/>
<af:commandButton text="Begin"/>
Bean code :
public void fileUploaded(ValueChangeEvent valueChangeEvent) {
UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
if (file != null)
System.out.println("************** "+file.getFilename().toString());
>>All you need to do is to get hold of the input stream of the upload file and copy it to an file on your server (which you can create).
public static int copy(InputStream input, OutputStream output)
throws IOException {
byte[] buffer = new byte[1024 * 4];
int count = 0;
int n = 0;
while (-1 != (n = input.read(buffer))) {
output.write(buffer, 0, n);
count += n;
return count;
public void fileUploaded(ValueChangeEvent valueChangeEvent) {
UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
if (file != null) {
File ff;
try {
// create a temporary file on the host server
ff = File.createTempFile("xx", "yy");
FileOutputStream os = new FileOutputStream(ff);
IOUtils.copy(file.getInputStream(), os);
} catch (IOException e) {
e.printStackTrace();
System.out.println("************** " +
file.getFilename().toString());
}Timo
Maybe you are looking for
-
Hellow everyone, Wondering if some genius out there can help me come up with a solution, or whether this is just too pie in the sky!! So, I'm exhibiting at a huge conference at the end of the month and want the following set up: MacBook Pro Retina sh
-
Favorite files for Adobe Acrobat Reader 9?
I am wondering if there is a way to add a favorite files list to one of Acrobat Reader 9's toolbars. I have the recent files list set to the highest it will go (9 or 10), but I often go through quite a few files in the course of a day or two, and the
-
F4 for field in clasical report
Hi abapers i have one clasical report in that selection screen field crhd-arbpl(work center) d't have serch help. i wrote a program for it in that i used 'F4IF_INT_TABLE_VALUE_REQUEST' function module. but it is displaying output directly. when i pre
-
ESS, Bank Service, and Entering a Deposit Value
Hello Everyone, We are in the process of implementing ESS and I have noticed that the option to enter a deposit value is not shown with any subtypes (other than subtype 1). Does anyone know how to get the field 'Deposit Value' to show on the screen?
-
On an IPad 1 even after a full restart, and only application running, I'm finding that Audio recoding stops after a few seconds. The duration seems to be fairly random between 5 seconds to 25 seconds. Creating other tracks seems OK. Any ideas would b