Apex 4.2 : I want to capture the filepath after browsing and selecting a file using item File browse (WWV_FLOW_FILES). The file is uploaded as a BLOB but all info regarding its original location is missing, as it is replaced by f.i. F12457/<name doc>.docx
. When using File Browse (browsing for a document and selecting) however the complete path (f.i. L:\abc\def\document.docx) is shown in the field (although its value then is already F999999/document.docx).
Asked
Active
Viewed 2,071 times
1

Mark Rotteveel
- 100,966
- 191
- 140
- 197

Bernd Verhoeven
- 11
- 2
2 Answers
1
Browser security stops JavaScript from accessing this information
eg:
$('#P6_FILE').val()
"C:\fakepath\12c_notes.txt"
-
What if I want to capture file name at runtime? – Anshul Ayushya Apr 11 '20 at 04:36
-
To what end? What are you trying to achieve? – Scott Apr 11 '20 at 05:56
-
$('#P6_FILE').val()match(/\\([^\\]*)$/)[1] – YotamW Constantini Apr 12 '20 at 11:07
0
declare
v_doc varchar2(100);
begin
select :P_DOCUMENT into v_doc from dual;
:P59_DOCNAME := v_doc;
end;

Dan
- 59,490
- 13
- 101
- 110

Anshul Ayushya
- 131
- 5
- 21