File Path in uploading Mozilla vs IE
Hi experts
I am trying to implement something similar to any email program.
A user can send email to a user along with attachments.
I am encountering the following problems:
1) in IE, the file path is set correctly, but in mozilla only the file name is set. (how do i get the file path in mozilla??)
2) if i add the file as part of the body in the email, the destination user should only see only the file name and not the entire file path of the source computer.
any help would be appreciated
thanx
deepak
yes that is true.
for some reason though Internet explorer sends the entire path and mozilla only the file name.
I have a server running some jsp pages. the user comes to the jsp page
enters the source email and destination email and then selects attachment files.
I want to send this email with attachments without uploading these files to my server
I wish to know if that can be accomplised
thanx
Similar Messages
-
How to get full file path while uploading a file in flex Applications
How to get full file path while uploading a file in flex applications.
FileReference Object is giving file name and other details but not the actual path.
Is there any workaround to to get the file path?.
ThanksWhy not ask in the Flex forum; it is more likely that someone over there knows.
-
Mozilla takes out path of file - Problem! - need full file path for Upload
There are pages on my site that process the uploading and storing of files (images) from the client's computer, and while IE leaves the full path of the file (like C:\myphotos\jpeg\example.jpg), Mozilla only passes the name of the file (like example.jpg), which is no good! I need to have the full path of the image file in order for it to work.
How do I fix this issue?
Here is a snippet of my servlet code, within the code I commented where the problem occurs...halting my servlet from continuing to process...but only in Mozilla.
List items = upload.parseRequest(request); // Create a list of all uploaded files.
Iterator it = items.iterator(); // Create an iterator to iterate through the list.
while(it.hasNext()) {
FileItem item = (FileItem)it.next();
File f = new File(item.getName()); // Create a FileItem object to access the file.
//THE STATEMENT BELOW HALTS THE REST OF THE SERVLET FROM PROCESSING
//BECAUSE THE FILE PATH IS INCOMPLETE
FileInputStream fs = new FileInputStream(f);
//...Any input is appreciated,
Love2JavaBalusC wrote:
According to your post history you've done webapps for more than 2 years. More than enough time to understand how HTTP works and so on. You even had ever posted a topic related to uploading files. Seriously, I am highly surprised.I am a self taught programmer, and yes, I have been learning code, working on my project, for quite some time, but I am not an 'expert' in ALL areas of development/programming, so excuse me if I 'lack' certain knowledge in certain areas. I'm also running/testing on a local machine, obviously, so, like I said in my last post, I didn't realize that that was the ONLY reason IE worked with my code for uploading.
Now getting back to the topic of my post, if we could....I just want to get this problem I'm having fixed asap, so I can continue working on my project. If you will kindly continue to help me, I naturally would appreciate it.
The download page for Apache has been fixed, and I downloaded the commons.io package, the latest. I added the .jar to the appropriate directories, and to my classpath. I must be missing something. I compiled a program and the compilation error says "cannot resolve symbol" on FileFilterUtils. What am I missing or not 'seeing'? -
Hi all,
I am using <t:inputFileUpload /> for file uploading purpose,
UploadedFile inputFile.getName() method gives entire file path when i use IE,but
the same inputFile.getName() gives just a file name not the complete path when i use
mozilla browser.....
i got to save the entire file path during upload.
Any idea to solve this cross browser problem???
regards,
sundarThat is indeed a flaw in Internet Explorer. Firefox behaves as it should be.
Why do you need the file path? Do you think that you can get the file from the server disk if you construct a File object with a path which is obtained from a client side disk? This is not going to work. Just get the file contents by UploadedFile#getInputStream().
Also see this article: [http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html].
Edited by: BalusC on 7-aug-2008 11:12 -
How to get complete path when uploading a file in Mozzila
Hi
I was trying to upload a file using html code
<input type="file" name="cdrfile">
then I wrote
<% = request.getParameter("cdrfile")%>
trying to get the path and the file name. But Mozilla doesn't return me the complete path only the file name. Does anyone know how to get the complete path in Mozilla?
Cheers
MDeliberate double post:
http://forum.java.sun.com/thread.jspa?threadID=5147786&messageID=9551206#9551206 -
File Input can't get full file path when user choose to upload it
i saw the solution which many used it to return the file path,
at this link:
https://bugzilla.mozilla.org/show_bug.cgi?id=143220
comment#40 and #50
but they don't want to hold it to use it later, i want that, i can't hold the full file path in my hand and set it to a variable to use it later, i have to use only javascript DON'T Applets. and i use FireFox 3.6.3 or later version.
Please, what can i do ?....can any one help me .... ?
thank you an advance.....
== This happened ==
Every time Firefox opened
== always ==
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.0 (KHTML, like Gecko) Chrome/6.0.408.1 Safari/534.0thank you for reply
i saw this links and already sent to this group, and i'll more search again, But i found that any change in user.js the about:config don't see, may my system can't feel with user.js ?
e.g : i changed user_pref("javascript.enabled", false);
but it still see it true.
what is the wrong in your opinion sir ? -
Full File path of the uploaded fie in struts
How do we get full file path from the FileForm component in Struts upload.
Acutal requirement is that ,
in the file browser component, the user may select a file or he may paste and external link like http://www.xyz.com/abc/index.html etc..,
How do we get the value that is in the input in the File Browser component as it is?
Any help, is highly appreciated.
PraveenI don't have a clue, but I would see that as a security threat if I was a user. I don't want to send local path names to a server.
/Kaj -
How to validate File Path given for upload
Hi All,
I am trying to upload a file using the File Upload Control. I have already bound the data and resource property with the context attributes. Can someone please suggest that what can be done to validate the file path? For eg. if i enter "abcd" in the file path and click a button for uploading the file. My application simply "<b>HANGS UP</b>" without even reaching the code what i have written on action of the button.
Is there any way to permit the user to enter the path only through Browse button and not manually? Please reply ASAP.
Thanks and Regards,
SmritiHi Smriti,
Have a look on the Following Links... which clearly briefs what is the use of FileUpload UI and how it works behind the screen...
<a href="/people/dagfinn.parnas/blog/2004/08/15/inputfile-how-to-hide-the-plain-browse-button you about the how the FileUplaod UI is being built.</a>
<a href="/people/dagfinn.parnas/blog/2004/08/15/inputfile-how-to-hide-the-plain-browse-button more stuff on FileUpload UI</a>
<a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;892442">How the FileUpload UI interacts with the local system</a>
After going thru above post, you can identify that the inputField is being declared as FILE type (like <input type="file" >), and you would also noticed the cause for your error in the last link which I have specified above, and what microsoft also recommends for it as a solution to show an alternative message in place of the blank screen...
Hope now you would be clear...why your method is not being invoked..
Please revert back for futher queries... try to come soon with an alernative solution...
Regards / Guru
Message was edited by:
Armin Reichert -
How to get the file path from HTML input form in Firefox 3...
In IE7 (and probably all famous browsers, including old Firefox 2), if we submit a file like 'C:\folder1\folder2\folder3\filename' it works properly and gives the full path to the file and the filename.
In Firefox 3, it returns only 'filename', because of their new 'security feature' to truncate the path, as explained in Firefox bug tracking system (https://bugzilla.mozilla.org/show_bug.cgi?id=143220)
I have no clue how to overcome this 'new feature' because it causes all upload forms in my webapp to stop working on Firefox 3.
Can anyone help to find a single solution to get the file path both on Firefox 3 and IE7?
Thanks in advance....As you're posting this in the JSF forum and looking at your [previous topic|http://forums.sun.com/thread.jspa?threadID=5342365], I assume that you're using Tomahawk's t:inputFileUpload. In this case, just use UploadedFile#getInputStream(). You may find this article useful: [http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html].
By the way, are you lazy or just dumb? You wasted one week to this! I've posted the aforementioned article one week ago. How did you stuck? -
LSMW - Logical File Path not pointing to Physical Path
Hi All,
I'm trying to upload some MIGO goods movement transactions through LSMW. I'm to step 7, specifying files, and am getting the error "No logical file path has been specified. I saw another thread which helped me, but I am still stuck after reading it.
Re: Error in Creation of Purchase Requisition through LSMW
I have gone into transaction FILE and created the logical file name MM_GOODS_MOVEMENT, and set the physical file as the .lsmw.conv converted data file as the above thread says. I also tried using the logical path LOCAL_TEMPORARY_FILES for the converted data, but I get the error telling me that the path does not point to a physical directory. I then tried creating my own file path, and setting the path to my desktop where the source file is, and the same error occurred.
Does anyone know why it is not recognizing the physical path maintained in the logical path?
Thanks,
JThanks for both replies,
I have full authorization across all transactions in the sandbox system I am working in, so that is not an issue. I filled the logical path field in the MM_GOODS_MOVEMENT logical file with LOCAL_TEMPORARY_FILES, as well as trying my own created file path, and I recieved the same error for each. Here is how the config is currently:
Logical File Path Definition: MM_GOODS_MOVEMENT
Syntax Group: WINDOWS NT
Physical path: C:\Documents and Settings\jchanski\Desktop\<FILENAME>
or,
Logical File Path Definition: LOCAL_TEMPORARY_FILES
Syntax Group: WINDOWS NT
Physical path: C:\temp\<FILENAME>
Logical File Name Definition: MM_GOODS_MOVEMENT
Physical file: MM_MM_MIGO_INVUPLOAD.lsmw.conv
Data format: ASC
Applicat.area: MM
Logical path: LOCAL_TEMPORARY_FILES or MM_GOODS_MOVEMENT
Do you see any error with this Brajvir? Thanks! -
Issue with Getting the file path from InputFile component
Hi,
One of our requirement is like below:
I am working on ADF 11g (latest release R1) page. User will select the file and when he/she clicks on the Save button we need to store the file path in the database.
In the database file_path is varchar2(300). We need to store just the file path. I am using InputFile component but filepath is not getting inserted.
This is really urgent. It would be really appreciate if anyone can guide me on this.
Thanks
MCHi Mahesh,
I have manage to store the file path from the InputFile component in Jdev 11g. I found the file upload script from this forum and manage to alter it so that i could save the file path to the database. But my problem is to retrieve it back to view as a document. Hope this will help you :)
This is an example of what I have manage to save to my DB :
(CLOB) //192.168.238.53/c$/Research/Docs/0906160744/EyeCandyLog.txt
In my form, I save the file path first before I update the other fields. My code is something like this :
public void uploadFile(ValueChangeEvent valueChangeEvent) {
// Add event code here...
InputStream in;
FileOutputStream out;
if(tanda == 0){
try {
// final Context context = getInitialContext();
RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
id = rS01Proposal.dptProposalid();
tanda = tanda + 1;
System.out.println("tanda"+ tanda);
} catch (Exception ex) {
ex.printStackTrace();
System.out.println("id"+id);
proposal = id.substring(6);
System.out.println("proposal"+proposal);
UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
String fileUploadLoc = "//192.168.238.53/c$/Research/Docs/"+id+"/";//The place where file will saved
//create upload directory
boolean exists = (new File(fileUploadLoc)).exists();
if (!exists) {
(new File(fileUploadLoc)).mkdirs();
if (file != null && file.getLength() > 0) {
FacesContext context = FacesContext.getCurrentInstance();
FacesMessage message =
new FacesMessage("File Uploaded " + file.getFilename() +
" (" + file.getLength() + " bytes)");
*// extracting the file message to get the path*
context.addMessage(valueChangeEvent.getComponent().getClientId(context), message);
columnL = valueChangeEvent.getComponent().getClientId(context);
column = columnL.substring(9);
System.out.println(column);
columnLengkap = "RS01"+column.toUpperCase();
System.out.println("columnLengkap"+columnLengkap);
*try {*
out = new FileOutputStream(fileUploadLoc + "" + file.getFilename());
in = file.getInputStream();
*for (int bytes = 0; bytes < file.getLength(); bytes++) {*
out.write(in.read());
in.close();
out.close();
} catch (IOException e) {
e.printStackTrace();
} else {
String filename = file != null ? file.getFilename() : null;
String byteLength = file != null ? "" + file.getLength() : "0";
FacesContext context = FacesContext.getCurrentInstance();
FacesMessage message =
new FacesMessage(FacesMessage.SEVERITY_WARN, " " + " " +
filename + " (" + byteLength + " bytes)",
null);
context.addMessage(valueChangeEvent.getComponent().getClientId(context),
message);
System.out.println(fileUploadLoc+file.getFilename());
a = fileUploadLoc+file.getFilename();
b = b + 1;
if (flagInsert == 0){
try {
// final Context context = getInitialContext();
RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
rS01Proposal.insertDoc(id,proposal,columnLengkap,a);
flagInsert = flagInsert + 1;
System.out.println("tanda"+ tanda);
//session
ProposalSession.storeCurrentProposalId(id);
} catch (Exception ex) {
ex.printStackTrace();
}else{
// update proses
try {
// final Context context = getInitialContext();
RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
rS01Proposal.updateDoc(id,proposal,columnLengkap,a);
flagInsert = flagInsert + 1;
//session
ProposalSession.storeCurrentProposalId(id);
System.out.println("tanda"+ tanda);
} catch (Exception ex) {
ex.printStackTrace();
} -
How to get the file path from HTML input form in Firefox3
In IE7 (and probably all famous browsers, including old Firefox 2), if we submit a file like 'C:\folder1\folder2\folder3\filename' it works properly and gives the full path to the file and the filename.
In Firefox 3, it returns only 'filename', because of their new 'security feature' to truncate the path, as explained in Firefox bug tracking system (https://bugzilla.mozilla.org/show_bug.cgi?id=143220)
I have no clue how to overcome this 'new feature'.
Can anyone help to find a single solution to get the file path both on Firefox 3 and IE7?
Thanks in advance....Doubleposted and ignored any previous answer: [http://forums.sun.com/thread.jspa?threadID=5342405]. Don't do that. It's rude.
Regarding to your "problem": why do you need the file path? -
File browse : How to keep the file path in the file browse field?
Hello,
I have
1) file browse field called P2_FILE_PATH.
2) a select list with submit : P2_REGION
If i upload some file d:\abc.gif , then select some region in the P2_REGION,
P2_FILE_PATH will become empty. But in the session, i can find the blob value. but not the "d:\abc.gif "
Using the following script I could capture the value of P2_FILE_PATH in a field
P2_TEST.
onload="javascript:document.getElementById(P2_FILE_PATH').value = document.getElementById('P2_TEST').value;"
P2_TEST contains d:\abc.gif .
How to retain the file path, though some other field is selected and submitted?
Thanks in advance.
Regards,
ArchanaHello Archana,
You can't do what you want because of some HTML security restrictions – nothing to do with APEX. As you found out, You can capture the value of this item. You can't set it. After submitting the page, the browser is the one to clear the item.
The only workaround is to work with AJAX and not submit the page until the end of the user input phase.
Regards,
Arie. -
How to save pdf file(path) in oracle db
Hi all,
we are using forms 10g. the requirement is user can upload the pdf file from the forms. the pdf file should store in the server folder and the path can store in the db table field. when ever the user wish to download that pdf based up on the unique pdf name that should be open or save on client machine.
can anybody help me how to do this
Thank youHi Amatu Allah,
thank you for your reply
i have the code based upon the webutil functions but it is not working can u pls help me
Here---B8 is Block name
if :toolbar.li_mode in('M') then
if :b8.pdf_loc1 is not null then
declare
l_success boolean;
BEGIN
mesg(1);
l_success := webutil_file_transfer.Client_To_DB_with_progress
(:b8.pdf_loc1-------------------------------------------------------------------------------------source file location,
't002pod_pdf', ---------------------------------------------------------------------------------table name
'pdf',-----------------------------------------------------------------------------------------------column name
'doc_no = :b8.doc_no',---------------------------------------------------------------------doc_no is field
'Upload to Database in progress',
'Please wait',
false,
null
if l_success
then
message('File uploaded successfully into the Database');
else
message('File upload to Database failed');
end if;
exception
when others
then
message('File upload failed: '||sqlerrm);
END;
else
mesg('Plese Select The File name');
go_item('B8.pdf_open');
end if;
end if;
---------------------------------------------------------------------WEBUTIL FUNCTION BODY------------------------------------------------------------------------
FUNCTION Client_To_DB_With_Progress
( clientFile in VARCHAR2,
tableName in VARCHAR2,
columnName in VARCHAR2,
whereClause in VARCHAR2,
progressTitle in VARCHAR2,
progressSubTitle in VARCHAR2,
asynchronous in BOOLEAN default FALSE,
callbackTrigger in VARCHAR2 default NULL) return BOOLEAN is
BEGIN
return UploadInt
( clientFile,
tableName,
columnName,
whereClause,
true,
true,
progressTitle,
progressSubTitle,
asynchronous,
callbackTrigger);
END Client_To_DB_With_Progress;
-- Internal implementations ----
FUNCTION UploadInt ( clientFile in VARCHAR2,
spec1 in VARCHAR2,
spec2 in VARCHAR2,
spec3 in VARCHAR2,
toDB in BOOLEAN,
withProgress in BOOLEAN,
progressTitle in VARCHAR2,
progressSubTitle in VARCHAR2,
asynchronous in BOOLEAN default FALSE,
callbackTrigger in VARCHAR2 default NULL) return BOOLEAN is
clientFileSize PLS_INTEGER := 0;
clientFileChunks PLS_INTEGER := 0;
clientFileInfo VARCHAR2(1000 char);
result BOOLEAN := FALSE;
dataBuffer VARCHAR2(32767);
ignore VARCHAR2(2);
jobj ORA_JAVA.JOBJECT;
lastErrorCode PLS_INTEGER;
lastErrorArgs VARCHAR2(1000);
encodedFile ORA_JAVA.JOBJECT;
ftemp TEXT_IO.FILE_TYPE;
tempFileName VARCHAR2(512);
bool_ignore boolean;
BEGIN
mesg('inside function--2');
-- Client file cannot be null
if clientFile is null then
raise CLIENT_FILE_NULL;
end if;
-- AS file cannot be null. AppsServerFileWriter also handles this. Better to handle here.
if NOT toDB AND spec1 is null then
raise AS_FILE_NULL;
end if;
-- Make sure the client file to be uploaded exists and readable
-- If we don't raise exception here, we end up creating an empty file on DB or AS
if NOT webutil_file.file_is_readable(clientFile)
OR webutil_file.file_is_directory (clientFile) then
raise FILE_NOT_FOUND;
end if;
-- First check to see if a transfer is not currently happening
if In_Progress then
raise AGENT_BUSY;
end if;
-- reset the target
m_toDB := toDB;
-- Set up the file info
clientFileInfo := clientFile||'|0|'||
WEBUTIL_UTIL.BoolToStr(asynchronous,'A|','S|')||
WEBUTIL_UTIL.BoolToStr(withProgress,'Y|','N|')||
progressTitle||'|'||
progressSubTitle;
WebUtil_Core.setProperty(WebUtil_Core.WUT_PACKAGE,'WUT_FILE_INFO', clientFileInfo);
mesg('clietfileinfo: '||clientFileInfo);
-- get the size and chunk info of the client side file
clientFileInfo := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_FILE_INFO');
clientFileSize := DelimStr.getNumber(clientFileInfo,1,true,'|');
mesg('size: '||clientFileSize);
if clientFileSize = 0 then
raise CLIENT_FILE_EMPTY;
-- no need to close AS file since it is not yet opened.
end if;
clientFileChunks := DelimStr.getNumber(clientFileInfo,2,true,'|');
-- Set up the Open command
if toDB then
if not m_DBEnabled then
raise TRANSFER_FORBIDDEN;
end if;
if not WebUtil_DB_Local.openblob(spec1, spec2, spec3,'W', m_maxTransferSize) then
WebUtil_core.Error(WebUtil_Core.WUT_PACKAGE,WebUtil_DB_Local.getLastError,
'WEBUTIL_FILE_TRANSFER.uploadInt');
raise READWRITE_ERROR;
end if;
else
if not WebUtil_Core.checkJava then
raise NO_JAVA;
end if;
if not checkASACL(spec1,m_writeACL) then
raise TRANSFER_FORBIDDEN;
end if;
jobj := JAVA_APPSERV_WRITER.NEW;
if not JAVA_APPSERV_WRITER.openFile(jobj,spec1) then
lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
'WEBUTIL_FILE_TRANSFER.uploadInt',lastErrorArgs);
raise READWRITE_ERROR;
end if;
end if;
-- Is this Async? if So we do nothing more here just set the callback and kick it off
if asynchronous then
-- set callbackTrigger even if it is null. we will take care
-- before calling
WebUtil_Core.SetCallbackTrigger(-1,callbackTrigger);
ignore := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_TRANSFER');
m_chunks := clientFileChunks;
m_fileSize := clientFileSize;
m_uploadSucceeded := NULL;
if not toDB then
m_persistObj := ORA_JAVA.NEW_GLOBAL_REF(jobj);
end if;
result := true;
else
if NOT toDB then
encodedFile := JAVA_FILE.createTempFile('WUAS','.enc');
tempFileName := JAVA_FILE.getPath(encodedFile);
end if;
-- loop through each chunk
for i in 1..clientFileChunks LOOP
dataBuffer := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_TRANSFER',false);
if (WebUtil_Core.isError) or (dataBuffer is null) then
raise AGENT_BUSY;
end if;
-- Write to the correct place
if toDB then
WebUtil_DB_Local.WriteData(dataBuffer);
else
ftemp := TEXT_IO.FOPEN(tempFileName, 'W');
TEXT_IO.PUT(ftemp, dataBuffer);
TEXT_IO.FCLOSE(ftemp);
-- if not JAVA_APPSERV_WRITER.WriteData(jobj,dataBuffer) then
if not JAVA_APPSERV_WRITER.decodeBASE64File(jobj,tempFileName) then
lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
'WEBUTIL_FILE_TRANSFER.UploadInt',lastErrorArgs);
raise READWRITE_ERROR;
end if;
end if;
end LOOP;
if toDB then
if WebUtil_DB_Local.CloseBlob(clientFileSize) then
result := true;
else
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,WebUtil_DB_Local.getLastError,
'WEBUTIL_FILE_TRANSFER.UploadInt');
end if; -- close
else
bool_ignore := JAVA_FILE.DELETE_(encodedFile);
if JAVA_APPSERV_WRITER.CloseFile(jobj,clientFileSize) then
result := true;
else
lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
'WEBUTIL_FILE_TRANSFER.UploadInt',lastErrorArgs);
raise READWRITE_ERROR;
end if;
end if;
end if; -- async
return result;
EXCEPTION
when CLIENT_FILE_EMPTY then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,133,'WEBUTIL_FILE_TRANSFER.UploadInt', clientFile);
return false;
when CLIENT_FILE_NULL then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,130,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when AS_FILE_NULL then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,117,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when FILE_NOT_FOUND then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,129,'WEBUTIL_FILE_TRANSFER.UploadInt', clientFile);
return false;
when TRANSFER_FORBIDDEN then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,121,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when AGENT_BUSY then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,116,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when READWRITE_ERROR then
return false;
when NO_JAVA then
return false;
when WebUtil_Core.BEAN_NOT_REGISTERED then
WebUtil_Core.ErrorAlert(WebUtil_Core.getImplClass(WebUtil_Core.WUT_PACKAGE)
||' bean not found. WEBUTIL_FILE_TRANSFER.UploadInt will not work');
RAISE FORM_TRIGGER_FAILURE;
when WebUtil_Core.PROPERTY_ERROR then
RAISE FORM_TRIGGER_FAILURE;
END UploadInt; -
How to set the file path dynamically based on sytem, username, and date
Hi All,
My requirement is upload the data into one structure like xyz that is related to t.code MCSZ.
file will be in UNIx SERVER .
PATH IS: /sapif
file name is xy789 load .txt
I have to write code in one user-exit
how can i set the file path for this.
shall i put hard code file path?
because i have to writecode in user-exit.
plz tell me how to set the file path based ons syetem, username, date
Thanks in advance
Ram.AConcatenate the field SY-SYSID, SY-UNAME and SY-DATUM for the file path
Maybe you are looking for
-
How do I insert into an array only if the condition is true?
I am buiding an array made up of pairs of data from a file. I am going through line by line putting the values in an array and then taking the pairs of two indexes oring them and putting the number into another array. I do not know if there is more t
-
Do I need to get extra coverage on this thing?
My wife bought me my iPhone from AT$T($), not sure if I need to purchase any extra warranty or if that is even possible? Just got me curious after I read the broken silent button thread...
-
Add dancer.js library waveform to Edge animate with yepnope
*Getting external library dancer.js to load via yepnope Hello Tim you have an excellent solution with yepnope, i hope you can help me cause i try to add the dancer.js library here de example (http://pelidesk.vv.si/java/examples/audio_element/ ) to my
-
The calc on the bb stock is SO basic! No tip calc etc like other current phones,.,even my old voyager and en touch had one! help! thank you.
-
Photoshop Elements 10 won't complete installation and won't uninstall.
Photoshop Elements 10 won't complete the installation process and it won't uninstall using the uninstall utility (I get an error message). So I tried deleting all files manually. However, when I re-insert Disc #1 it only offers to uninstall Element