2.1 Bug with uploaded files?
Hi,
I'm not sure if we're posting bugs to the forum but i'll just post it up here anyway..
I'm using HTMLDB 2.1 running on Oracle Express and uploaded a javascript file (into 'static files') so that i could reference it from a page.
My page was working fine when all of a sudden the page started to produce an error. The error was being caused by the fact that it could no longer find the javascript file (i'd been using it and testing it fine for an hour or so with no errors)..
The file was was referenced from the page as :-
<script language="javascript" src="#FLOW_IMAGES#LinkMenu.js" type="text/javascript"></script>
When I looked in the 'static files' section my javascript file was no longer listed. I thought that maybe I had accidentally deleted it (I was 99.9% sure i hadnt ) .. so I tried to upload it again but received a 'unique constraint violated'..
Looking in WWV_FLOW_HTML_REPOSITORY it seems that my file still had an entry and yet did not appear in 'static files' view..
I've sorted it out now but thought I'd just post my rather unusual problem.
Cheers,
Paul Ashton.
Well, I was wondering if I was being hasty using the word 'bug' (sorry to those who it may offend ;) )..
So, I'll accept some 'operator' error for this... however its probably still worth sharing..
I found the cause of the problem to be an unqualified delete on the htmldb_application_files 'table'... this is the erroneous statement :-
DELETE FROM htmldb_application_files;
-- WHERE name=:P18_FILENAME;
I'm working on a new file upload/management application and I had mistakenly commented out the WHERE clause. However, it did leave me in the odd situation of the record still remaining in the WWV_FLOW_HTML_REPOSITORY table that resulted in the unique constraint violation...
Cheers,
Paul Ashton.
Similar Messages
-
Adobe Send - Problem with uploading files. When is this going to get fixed?
When is the Adobe Send problem with uploading files going to get fixed. Similar to others - I have tried and tried to make Adobe Send work and get an error. I have tried to upload the file and it looks like it uploads and then - it is nowhere to be found.
I then go to Adobe Send Now and it works fine.The problem is the same as described in other similar threads.
I have a 57 MB PowerPoint file I am trying to send using Adobe Send. I go through the normal steps to identify the file and select recipients and then send the file. After the file completes the upload - an error saying there was a problem comes up and the file is not uploaded.
I have tried to upload the file to the site with similar results - error and the file doesn't go.
I can go to the old SendNow site and it works flawlessly.
If I need to get screenshots - let me know. There are several other threads describing this same problem. It isn't something new or not heard of before.
Sent from my iPod -
Problems with uploading files, lumia 920!
Hello,
I'm having trouble uploading files in internet explorers browser.
if I come to a website with a browse button , you can not explore the phone's contents. The Browswe button is gray marked
I have tried on several different websites. For example, image upload pages.
Is this a bug or just something missing in lumias interface.
/ with kind regardsthis is a limitation of the mobile device OS. even if in the settings you select desktop version, you still cannot attache a file from your mobile device to website. :/
for us symbian and maemo/meego users, this is a hinderance.
i have not tried the UC Browser scoobyman suggested. that may work.
be sure to report back if you can or cannot get it to work. -
Help me with uploading files to jobsites
Someone help me, help me please. It seems that from my administrative account I can not upload files to any potential job sites. From any web site, the option that says, 'choose files' whenever I clique on that and try to upload the little multi-color turning circle comes on and everything freezes. However I am able to upload from my other user accounts but a lot of good that does because I do not have any saved information on those accounts. What is going with my computer, its the first time I have ever had an issue with my computer, did I catch a bug or something?
Have you successfully uploaded to this site before?
Is your site definition configured to upload to the proper
remote folder?
The error message is simply telling you the transfer did not
succeed
"mikesilverman22" <[email protected]> wrote
in message
news:e5im76$r17$[email protected]..
>I am trying to upload files onto a remote site, but it
keeps timing out.
>Also,
> on my new website that i'm making for a client, when i
Put the files onto
> the
> remote site it says Started:
>
> 5/30/06 7:57 PM
>
> index.html - error occurred - An FTP error occurred -
cannot put
> index.html.
> Access Denied. The file may not exist, or there could be
a permission
> problem.
>
> File activity incomplete. 1 file(s) or folder(s) were
not completed.
>
> Files with errors: 1
> index.html
>
> Finished: 5/30/06 7:57 PM
>
> What does this mean? why are the file incomplete?
>
> Mike S
> -
Hello everyone. I am having trouble writing a utility that uses SharePoint web services to upload a file and metatag it. It keeps throwing the following error message:
"The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/_forms/default.aspx?ReturnUrl=%2fsites%2fgk%2f_vti_bin%2fcopy.asmx">here</a>.</h2>
</body></html> --."
Not sure why. I pass the file that I am going to upload to the subroutine and it is suppose to upload it to the appropriate library. I have burned several days on this problem and I am not sure what is going on. I would appreciate anyone that can point me in
the right direction. Below is the subroutine that I have that is causing the problem. Obviously, I have stripped the name from the example.
Thanks
Mike
******** <Begin snip of code> **********************
Public Shared Sub CreateNewDocumentWithCopyService(ByVal fileName As String)
Dim c As New copyservice.Copy
c.PreAuthenticate = True
c.Credentials = New System.Net.NetworkCredential("[email protected]", "mypassword")
c.Url = "https://x.sharepoint.com/sites/gk/_vti_bin/copy.asmx"
Dim myBinary As Byte() = System.IO.File.ReadAllBytes(fileName)
Dim destination As String = "https://x.sharepoint.com/sites/gk/Gatekeeper%20Reference/" & System.IO.Path.GetFileName(fileName)
Dim destinationUrl As String() = {destination}
Dim info1 As New copyservice.FieldInformation
info1.DisplayName = "Title"
info1.InternalName = "Title"
info1.Type = copyservice.FieldType.Text
info1.Value = "new title"
Dim info2 As New copyservice.FieldInformation
info2.DisplayName = "Modified By"
info2.InternalName = "Editor"
info2.Type = copyservice.FieldType.User
info2.Value = "-1;#servername\\testmoss"
Dim info As copyservice.FieldInformation() = {info1, info2}
Dim resultTest As New copyservice.CopyResult
Dim result As copyservice.CopyResult() = {resultTest}
Try
' When creating new content use the same URL in the SourceURI as in the Destination URL argument
c.CopyIntoItems(destination, destinationUrl, info, myBinary, result)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
******** <End snip of code> **********************Hi,
If you want to upload a file to a library in SharePoint 2013 online, I suggest you use Client Object Model or REST API.
The code snippets in the two threads below will be helpful:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/deac7cb7-c677-47b0-acdc-c56b32dfaac8/uploading-bigger-files-using-csom
http://stackoverflow.com/questions/17057074/how-to-download-upload-files-from-to-sharepoint-2013-using-csom
Uploading Files Using the REST API
http://blogs.msdn.com/b/uksharepoint/archive/2013/04/20/uploading-files-using-the-rest-api-and-client-side-techniques.aspx
You can handle the authentication with
SharePointOnlineCredentials object:
http://www.vrdmn.com/2013/01/authenticating-net-client-object-model.html
Best regards
Patrick Liang
TechNet Community Support -
Help with Upload file to Server Examples
I have been working with the examples for how to upload a file to the server. Though i got the example to work. there is one more thing i need to do. i need to allow the user to be able to select multiple files. In the example when you click on Upload, it opens a MS window to allow you to select a file. This example does not allow you to select more then one file though. I found another example for selecting multiple files but this one differs very much in that the person who make it "Ryan Favro" created a whole new GUI window to select multiple files. those his example works great, i dont want a special window to select files, i want the MS window to do it.
Is there a way to make the original example that uses the MS window to allow the user to select multiple files ?
I have attached the example that uses the MS window.Hi,
Use this code. May be it helps u.
fileuploadapp.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="test.*" layout="absolute"
creationComplete="initApp()" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private const _strDomain:String = new String("http://localhost:8400/");
private const _strUploadScript:String = new String(_strDomain + "ProcessFileUp/UploadFile");
// Initalize
private function initApp():void {
Security.allowDomain(_strDomain);
]]>
</mx:Script>
<mx:Canvas width="400" height="300" horizontalCenter="0" verticalCenter="0">
<com:FileUpload
width="100%" height="100%"
uploadUrl="{_strUploadScript}"
uploadComplete="Alert.show('File(s) have been uploaded.', 'Upload successful')"
uploadIOError="Alert.show('IO Error in uploading file.', 'Error')"
uploadSecurityError="Alert.show('Security Error in uploading file.', 'Error')"/>
</mx:Canvas>
</mx:Application>
fileuoload.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="*"
layout="vertical" width="100%" minWidth="400" height="100%" minHeight="200"
title="Upload Files" creationComplete="initCom()">
<mx:Metadata>
[Event(name="uploadComplete", type="flash.events.Event")]
[Event(name="uploadProgress", type="flash.events.ProgressEvent")]
[Event(name="uploadCancel", type="flash.events.Event")]
[Event(name="uploadIOError", type="flash.events.IOErrorEvent")]
[Event(name="uploadSecurityError", type="flash.events.SecurityErrorEvent")]
</mx:Metadata>
<mx:Script>
<![CDATA[
import mx.controls.*;
import mx.managers.*;
import mx.events.*;
import flash.events.*;
import flash.net.*;
private var _strUploadUrl:String;
private var _refAddFiles:FileReferenceList;
private var _refUploadFile:FileReference;
private var _arrUploadFiles:Array;
private var _numCurrentUpload:Number = 0;
// Set uploadUrl
public function set uploadUrl(strUploadUrl:String):void {
_strUploadUrl = strUploadUrl;
// Initalize
private function initCom():void {
_arrUploadFiles = new Array();
enableUI();
uploadCheck();
// Called to add file(s) for upload
private function addFiles():void {
_refAddFiles = new FileReferenceList();
_refAddFiles.addEventListener(Event.SELECT, onSelectFile);
_refAddFiles.browse();
// Called when a file is selected
private function onSelectFile(event:Event):void {
var arrFoundList:Array = new Array();
// Get list of files from fileList, make list of files already on upload list
for (var i:Number = 0; i < _arrUploadFiles.length; i++) {
for (var j:Number = 0; j < _refAddFiles.fileList.length; j++) {
if (_arrUploadFiles[i].name == _refAddFiles.fileList[j].name) {
arrFoundList.push(_refAddFiles.fileList[j].name);
_refAddFiles.fileList.splice(j, 1);
j--;
if (_refAddFiles.fileList.length >= 1) {
for (var k:Number = 0; k < _refAddFiles.fileList.length; k++) {
_arrUploadFiles.push({
name:_refAddFiles.fileList[k].name,
size:formatFileSize(_refAddFiles.fileList[k].size),
file:_refAddFiles.fileList[k]});
listFiles.dataProvider = _arrUploadFiles;
listFiles.selectedIndex = _arrUploadFiles.length - 1;
if (arrFoundList.length >= 1) {
Alert.show("The file(s): \n\n• " + arrFoundList.join("\n• ") + "\n\n...are already on the upload list. Please change the filename(s) or pick a different file.", "File(s) already on list");
updateProgBar();
scrollFiles();
uploadCheck();
// Called to format number to file size
private function formatFileSize(numSize:Number):String {
var strReturn:String;
numSize = Number(numSize / 1000);
strReturn = String(numSize.toFixed(1) + " KB");
if (numSize > 1000) {
numSize = numSize / 1000;
strReturn = String(numSize.toFixed(1) + " MB");
if (numSize > 1000) {
numSize = numSize / 1000;
strReturn = String(numSize.toFixed(1) + " GB");
return strReturn;
// Called to remove selected file(s) for upload
private function removeFiles():void {
var arrSelected:Array = listFiles.selectedIndices;
if (arrSelected.length >= 1) {
for (var i:Number = 0; i < arrSelected.length; i++) {
_arrUploadFiles[Number(arrSelected[i])] = null;
for (var j:Number = 0; j < _arrUploadFiles.length; j++) {
if (_arrUploadFiles[j] == null) {
_arrUploadFiles.splice(j, 1);
j--;
listFiles.dataProvider = _arrUploadFiles;
listFiles.selectedIndex = 0;
updateProgBar();
scrollFiles();
uploadCheck();
// Called to check if there is at least one file to upload
private function uploadCheck():void {
if (_arrUploadFiles.length == 0) {
btnUpload.enabled = false;
listFiles.verticalScrollPolicy = "off";
} else {
btnUpload.enabled = true;
listFiles.verticalScrollPolicy = "on";
// Disable UI control
private function disableUI():void {
btnAdd.enabled = false;
btnRemove.enabled = false;
btnUpload.enabled = false;
btnCancel.enabled = true;
listFiles.enabled = false;
listFiles.verticalScrollPolicy = "off";
// Enable UI control
private function enableUI():void {
btnAdd.enabled = true;
btnRemove.enabled = true;
btnUpload.enabled = true;
btnCancel.enabled = false;
listFiles.enabled = true;
listFiles.verticalScrollPolicy = "on";
// Scroll listFiles to selected row
private function scrollFiles():void {
listFiles.verticalScrollPosition = listFiles.selectedIndex;
listFiles.validateNow();
// Called to upload file based on current upload number
private function startUpload():void {
if (_arrUploadFiles.length > 0) {
disableUI();
listFiles.selectedIndex = _numCurrentUpload;
scrollFiles();
// Variables to send along with upload
var sendVars:URLVariables = new URLVariables();
sendVars.action = "upload";
var request:URLRequest = new URLRequest();
request.data = sendVars;
request.url = _strUploadUrl;
request.method = URLRequestMethod.POST;
_refUploadFile = new FileReference();
_refUploadFile = listFiles.selectedItem.file;
_refUploadFile.addEventListener(ProgressEvent.PROGRESS, onUploadProgress);
_refUploadFile.addEventListener(Event.COMPLETE, onUploadComplete);
_refUploadFile.addEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
_refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
_refUploadFile.upload(request, "file", false);
// Cancel and clear eventlisteners on last upload
private function clearUpload():void {
_refUploadFile.removeEventListener(ProgressEvent.PROGRESS, onUploadProgress);
_refUploadFile.removeEventListener(Event.COMPLETE, onUploadComplete);
_refUploadFile.removeEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
_refUploadFile.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
_refUploadFile.cancel();
_numCurrentUpload = 0;
updateProgBar();
enableUI();
// Called on upload cancel
private function onUploadCanceled():void {
clearUpload();
dispatchEvent(new Event("uploadCancel"));
// Get upload progress
private function onUploadProgress(event:ProgressEvent):void {
var numPerc:Number = Math.round((event.bytesLoaded / event.bytesTotal) * 100);
updateProgBar(numPerc);
var evt:ProgressEvent = new ProgressEvent("uploadProgress", false, false, event.bytesLoaded, event.bytesTotal);
dispatchEvent(evt);
// Update progBar
private function updateProgBar(numPerc:Number = 0):void {
var strLabel:String = (_numCurrentUpload + 1) + "/" + _arrUploadFiles.length;
strLabel = (_numCurrentUpload + 1 <= _arrUploadFiles.length && numPerc > 0 && numPerc < 100) ? numPerc + "% - " + strLabel : strLabel;
strLabel = (_numCurrentUpload + 1 == _arrUploadFiles.length && numPerc == 100) ? "Upload Complete - " + strLabel : strLabel;
strLabel = (_arrUploadFiles.length == 0) ? "" : strLabel;
progBar.label = strLabel;
progBar.setProgress(numPerc, 100);
progBar.validateNow();
// Called on upload complete
private function onUploadComplete(event:Event):void {
_numCurrentUpload++;
if (_numCurrentUpload < _arrUploadFiles.length) {
startUpload();
} else {
enableUI();
clearUpload();
dispatchEvent(new Event("uploadComplete"));
// Called on upload io error
private function onUploadIoError(event:IOErrorEvent):void {
clearUpload();
var evt:IOErrorEvent = new IOErrorEvent("uploadIoError", false, false, event.text);
dispatchEvent(evt);
// Called on upload security error
private function onUploadSecurityError(event:SecurityErrorEvent):void {
clearUpload();
var evt:SecurityErrorEvent = new SecurityErrorEvent("uploadSecurityError", false, false, event.text);
dispatchEvent(evt);
// Change view state
private function changeView():void {
currentState = (currentState == "mini") ? "" : "mini";
]]>
</mx:Script>
<mx:states>
<mx:State name="mini">
<mx:SetProperty name="height" value="60"/>
<mx:SetProperty name="minHeight" value="60"/>
<mx:SetStyle target="{btnView}" name="icon" value="@Embed('assets/application_put.png')"/>
</mx:State>
</mx:states>
<mx:transitions>
<mx:Transition fromState="*" toState="*">
<mx:Resize target="{this}" duration="1000"/>
</mx:Transition>
</mx:transitions>
<mx:Canvas width="100%" height="100%">
<mx:DataGrid id="listFiles" left="0" top="0" bottom="0" right="0"
allowMultipleSelection="true" verticalScrollPolicy="on"
draggableColumns="false" resizableColumns="false" sortableColumns="false">
<mx:columns>
<mx:DataGridColumn headerText="File" dataField="name" wordWrap="true"/>
<mx:DataGridColumn headerText="Size" dataField="size" width="75" textAlign="right"/>
</mx:columns>
</mx:DataGrid>
</mx:Canvas>
<mx:ControlBar horizontalAlign="center" verticalAlign="middle">
<mx:Button id="btnAdd" toolTip="Add file(s)" click="addFiles()" icon="@Embed('assets/add.png')" width="26"/>
<mx:Button id="btnRemove" toolTip="Remove file(s)" click="removeFiles()" icon="@Embed('assets/delete.png')" width="26"/>
<mx:ProgressBar id="progBar" mode="manual" label="" labelPlacement="center" width="100%"/>
<mx:Button id="btnCancel" toolTip="Cancel upload" icon="@Embed('assets/cancel2.png')" width="26" click="onUploadCanceled()"/>
<mx:Button label="Upload" toolTip="Upload file(s)" id="btnUpload" click="startUpload()" icon="@Embed('assets/bullet_go.png')"/>
<mx:Button id="btnView" toolTip="Show/Hide file(s)" icon="@Embed('assets/application_get.png')" width="26" click="changeView()"/>
</mx:ControlBar>
</mx:Panel>
Regards,
Shivang -
Problem in getting the parameters from teh form html with upload file
I have used the jspsmartupload package:
the html file:
<HTML>
<BODY BGCOLOR="white">
<H1>jspSmartUpload : Sample 5</H1>
<HR>
<form METHOD="POST" ACTION="sample5.jsp"
NAME="PW" ENCTYPE="multipart/form-data">
<table CELLSPACING="0" CELLPADDING="3" BORDER="1" WIDTH="474">
<!-- FILE -->
<!-- TEXT -->
<tr>
<td width="150">
<div align="left">
<p><small><font face="Verdana">Text : </font></small>
</div>
</td>
<td width="324"><small><font face="Verdana">
<input TYPE="TEXT" name="myText" value="">
<br>
</font></small></td>
</tr>
<!-- TEXTAREA -->
<tr>
<td width="150">
<div align="left">
<p><small><font face="Verdana">Text Area : </font></small>
</div>
</td>
<td width="324"><small><font face="Verdana">
<textarea name="myTextArea" rows="4" value=""></textarea>
<br>
</font></small></td>
</tr>
<!-- PASSWORD -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">PassWord : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="PASSWORD" name="myPASSWORD" value="">
<br>
</font></small></td>
</tr>
<!-- HIDDEN -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Hidden : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="hidden" name="myHidden" value="hidden">
<br>
</font></small></td>
</tr>
<tr>
<td><small><font face="Verdana">Select a first file :
</font></small></td>
<td><small><font face="Verdana">
<input type="file" name="FILE1">
</font></small></td>
</tr>
<tr>
<td><small><font face="Verdana">Select a second file : </font></small></td>
<td><small><font face="Verdana">
<input type="file" name="FILE2">
</font></small></td>
</tr>
<!-- CHECKBOX -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">CheckBox : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="CHECKBOX" name="myCheckBox" value="Value 1">
Value 1<br>
<input TYPE="CHECKBOX" name="myCheckBox" value="Value 2">
Value 2<br>
<input TYPE="CHECKBOX" name="myCheckBox" value="Value 3">
Value 3<br>
</font></small></td>
</tr>
<!-- RADIO -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Radio : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="radio" name="radio" value="Value 1">
Value 1<br>
<input TYPE="radio" name="radio" value="Value 2">
Value 2<br>
<input TYPE="radio" name="radio" value="Value 3">
Value 3<br>
</font></small></td>
</tr>
<!-- SELECT -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Simple Select : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<SELECT name="mySimpleSelect" >
<OPTION value="Value 1">Value 1</OPTION>
<OPTION value="Value 2">Value 2</OPTION>
<OPTION value="Value 3">Value 3</OPTION>
</SELECT>
<br>
</font></small></td>
</tr>
<!-- SELECT MULTIPLE -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Multiple Select : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<SELECT multiple name="myMultSelect" >
<OPTION value="Value 1">Value 1</OPTION>
<OPTION value="Value 2">Value 2</OPTION>
<OPTION value="Value 3">Value 3</OPTION>
</SELECT>
<br>
</font></small></td>
</tr>
<!-- SUBMIT -->
<tr>
<td colspan="2" width="474">
<div align="center">
<center>
<p><small><font face="Verdana">
<input
TYPE="Submit">
</font></small>
</center>
</div>
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
the jsp file :
<%@page language="java" import="com.jspsmart.upload.*"%>
<%@page import="java.util.*"%>
<jsp:useBean id="myUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
<HTML>
<BODY BGCOLOR="white">
<H1>jspSmartUpload : Sample 5</H1>
<HR>
<%
// Initialization
myUpload.initialize(pageContext);
// Upload
myUpload.upload();
// Files
out.println("<BR><STRONG>Display information about Files</STRONG><BR>");
out.println("Number of files = " + myUpload.getFiles().getCount() + "<BR>");
//out.println("Total size (bytes) = " + myUpload.getFiles().getSize() +"<BR>");
for (int i=0;i<myUpload.getFiles().getCount();i++){
out.print(myUpload.getFiles().getFile(i).getFieldName());
if (!myUpload.getFiles().getFile(i).isMissing())
out.print(" = " + myUpload.getFiles().getFile(i).getFileName() + " (" + myUpload.getFiles().getFile(i).getSize() + ")");
myUpload.getFiles().getFile(i).saveAs("/upload/" + myUpload.getFiles().getFile(i).getFileName());
else
out.print(" = vide");
out.println("<BR>");
// Request
out.println("<BR><BR><STRONG>Display information about Requests</STRONG><BR>");
// Retreive Requests' names
java.util.Enumeration e = myUpload.getRequest().getParameterNames();
// Retreive parameters
while (e.hasMoreElements()) {
String key = (String)e.nextElement();
String[] values = myUpload.getRequest().getParameterValues(key);
// Browse the current parameter values
for(int i = 0; i < values.length; i++) {
out.print(key + " = ");
out.print(values[i] + "<BR>");
%>
</BODY>
</HTML>
The result shown is:
jspSmartUpload : Sample 5
Display information about Files
Number of files = 2
FILE1 = path.txt (240)
FILE2 = WS_FTP.LOG (146)
Display information about Requests
radio = Value 2
mySimpleSelect = Value 1
myTextArea = test
myPASSWORD =
myMultSelect = Value 3
myHidden = hidden
myText = test
myCheckBox = Value 1
myCheckBox = Value 2
myCheckBox = Value 3
I would like to know if i want to get back the parameters from the form ,
is that i must use Enumeration.
Because i have tried request.getParameter() to get the value of radio button, textbox, checkbox and select menu, but it get the null values.
Also, the function of Enumeration does not get the values of parameter in sequence as html form. e.g.In the html file, the first parameters should be textbox,but it displays the radio button's values first.
How to solve the problem .
ThanksThis sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.
-
SQL*Loader and unzipping with uploaded file
hi, everybody
i was trying to integrate some functionalities, today separated. i made a simple Apex page that uploads a file, and now i need to process that file.
is there any way to process that uploaded file and load it onto a table, just like i'd do with Sql*Loader?
in the same way, can i unzip an uploaded zip file, just like Oracle Portal 3.0.9 used to do in its contect areas with zip itens?
thanksHi, Ivo
about ult_compress, ok. i'll check it out.
talking about uploaded files, the only thing i've found were:
a) download an uploaded file
b) use an uploaded image to integrate in a web application.
unfortunately, i didn't find anything that could help me process an uploaded text file the way i do with SQL*Loader.
i'll keep on trying
thanx -
Hi experts,
I try to upload file - and i got error message:
Property "data" of element file_up must be bound.
what is it mean???
what can i do to solve it?
thanks in advanced.
Michal.Hi,
create an attribute(say ca_fileupload) of type XSTRING under context and bind that attribute with the data property.
For binding the attribute just Click on the element file_up , there you can see data property,click on that and you can see all the nodes and attributes you have created and there click on the attribute(ca_fileupload). -
Problems with uploading file to database using FND_GFM
Hi
I'm having some problems uploading files to the database in apps 11.5.9
As various sources/documents tell me, using the standard FND_GFM / FND_FILE_UPLOAD packages of APPS should transfer an uploaded file into the FND_LOBS table, but some reason it doesn't work. I copied and altered the FND_GFM.upload_confirm function to try and figure out why it doesn;t work and it looks like the file to be uploaded does not appear in the defined table (FND_LOBS_DOCUMENT).
The following DAD is defined (with hidden password and servername to prevent abuse ;)):
[DAD_oes_s]
connect_string = oes_s
password = ****
username = APPS
default_page = fnd_web.ping
document_table = APPS.fnd_lobs_document
document_path = docs
document_proc =
upload_as_long_raw =
upload_as_blob = *
reuse = Yes
connmax = 10
pathalias = fndgfm
pathaliasproc = fnd_gfm.dispatch
enablesso = No
cgi_env_list=SERVER_NAME=***,REQUEST_PROTOCOL=http,SERVER_P
ORT=***,HOST=***
input_filtering = Yes
stateful=STATELESS_RESET
And I'm using the following code to generate the upload-file page
CREATE OR REPLACE PROCEDURE XX_ITRIS_HelloWorld AS--(file IN VARCHAR2) AS
access_id_v varchar2(1000);
BEGIN
htp.htmlOpen;
htp.bodyOpen;
htp.formOpen('http://***/pls/oes_s/fnd_file_upload.uploadcompletemessage', 'GET', null, 'multipart/form-data');
htp.formFile('file');
access_id_v := fnd_gfm.authorize(null);
htp.formHidden('access_id', access_id_v);
htp.formSubmit();
htp.formClose;
htp.line;
htp.bodyClose;
htp.htmlClose;
END XX_ITRIS_HelloWorld;
Can anybody point out what is going wrong?You said you are uploading XML file whereas in the TSQL you have assign as text file i.e @SourceFile = 'test.txt'. Are you sure that you are copying XML file ? What is the size of the source file "test.txt" ? I am sure it is 0 KB. That is what you
have found in FTP site.
Regards, RSingh -
Help with uploading files to remote site
I am trying to upload files onto a remote site, but it keeps
timing out. Also, on my new website that i'm making for a client,
when i Put the files onto the remote site it says Started:
5/30/06 7:57 PM
index.html - error occurred - An FTP error occurred - cannot
put index.html. Access Denied. The file may not exist, or there
could be a permission problem.
File activity incomplete. 1 file(s) or folder(s) were not
completed.
Files with errors: 1
index.html
Finished: 5/30/06 7:57 PM
What does this mean? why are the file incomplete?
Mike SHave you successfully uploaded to this site before?
Is your site definition configured to upload to the proper
remote folder?
The error message is simply telling you the transfer did not
succeed
"mikesilverman22" <[email protected]> wrote
in message
news:e5im76$r17$[email protected]..
>I am trying to upload files onto a remote site, but it
keeps timing out.
>Also,
> on my new website that i'm making for a client, when i
Put the files onto
> the
> remote site it says Started:
>
> 5/30/06 7:57 PM
>
> index.html - error occurred - An FTP error occurred -
cannot put
> index.html.
> Access Denied. The file may not exist, or there could be
a permission
> problem.
>
> File activity incomplete. 1 file(s) or folder(s) were
not completed.
>
> Files with errors: 1
> index.html
>
> Finished: 5/30/06 7:57 PM
>
> What does this mean? why are the file incomplete?
>
> Mike S
> -
Problem with uploading files in 11g
I upgraded the pre-installed APEX 3.0 in Oracle 11g to version 3.2. I created a form to upload files to the table htmldb_application_files and then copy the transaction to my custom table. However, after I "saved" the transaction, nothing happened. No file was uploaded into the htmldb_application_files table. Also, the "save" process took a while to finish.
I used to do this in my other applications in Oracle 10g and everything worked fine. Is it an issue with Oracle 11g?
Thanks.
AndyI think I just did something wrong myself. I was finally able to upload the file. However, I wrote the following procedure in my package but wasn't able to download the file from the report. Do I need to grant any privilege from the system user?
Also, does anyone know how to convert a BLOB table into 11g Securefiles table?
Thanks.
<pre>
procedure download_birth_cert(p_vrds_birth_cert_pk in number) is
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(4000);
Lob_loc BLOB;
begin
select mime_type, blob_content, file_name, dbms_lob.getlength(blob_content)
into v_mime, lob_loc, v_file_name, v_length
from vrds_birth_cert
where vrds_birth_cert_pk = p_vrds_birth_cert_pk;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header(nvl(v_mime,'application/octet'), FALSE);
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the user does a save as
htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
exception
when others then
null;
end download_birth_cert;
</pre> -
Bug with .ics files !!
Hi
I have a web based calendar that sends me bookings and deletions via .ics files. I believed that iCal was fully functional with vCalendar format.
ICal will accept the booking but will not delete it. (Outlook works fine with these files)
The code is:
Bookings
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
ORGANIZER:MAILTO:[email protected]
DTSTART:20101022T070000Z
DTEND:20101022T080000Z
LOCATION:Look In The Diary
UID:[email protected]
DTSTAMP:20101004T074311Z
SUMMARY:Session with Max Scianna
DESCRIPTION:Email address: [email protected]\nTelephone: 07968 238846\nNotes: Test session 71
PRIORITY:5
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
Delete:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:CANCEL
BEGIN:VEVENT
ORGANIZER:MAILTO:[email protected]
DTSTART:20101022T070000Z
DTEND:20101022T080000Z
UID:[email protected]
DTSTAMP:20101004T074311Z
STATUS:CANCELLED
END:VEVENT
END:VCALENDAR
Am I missing something obvious here or is it a bug?Hi
I have a web based calendar that sends me bookings and deletions via .ics files. I believed that iCal was fully functional with vCalendar format.
ICal will accept the booking but will not delete it. (Outlook works fine with these files)
The code is:
Bookings
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
ORGANIZER:MAILTO:[email protected]
DTSTART:20101022T070000Z
DTEND:20101022T080000Z
LOCATION:Look In The Diary
UID:[email protected]
DTSTAMP:20101004T074311Z
SUMMARY:Session with Max Scianna
DESCRIPTION:Email address: [email protected]\nTelephone: 07968 238846\nNotes: Test session 71
PRIORITY:5
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
Delete:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:CANCEL
BEGIN:VEVENT
ORGANIZER:MAILTO:[email protected]
DTSTART:20101022T070000Z
DTEND:20101022T080000Z
UID:[email protected]
DTSTAMP:20101004T074311Z
STATUS:CANCELLED
END:VEVENT
END:VCALENDAR
Am I missing something obvious here or is it a bug? -
Is anybody having problem with uploading files after Os X 10.9.3 update ?
I can't upload files from my computer or dropbox using interface/online plateform because my files appeared grey/inactive, can't press the "chose" or "open"
Hey Guys,
After recent SMC+EFI update on Macbook Air (Mid 2013) OSX v10.9.3, my internal audio device disappeared,
I tried everything I could find in google with no luck. (NPRAM+SMC reset, reloading kents etc.)
THIS IS WHAT SOLVED THE PROBLEM FOR ME:
1. I opened /System/Library/Extensions folder, there I found besides the usual AppleHDA.kext, also an AppleHDA.kext.disabled one.
2. I switched between them (swapped their names, sometimes you'll have to do it from the "get info" menu to take effect)
-- if you don't have this AppleHDA.kext.disabled one, try searching for one lil older than yours in the internet
3. then I unloaded and reloaded the kent dir again-
sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
And voila!
Hope it helps someone, as I spent hours until getting this to work again -
Help with uploading files through form
Hey,
I have a website for a sign business and I'm trying to make
it so people can upload custom artwork. I am using an ASP Formmail
script from I think it's www.brainjar.com. If I understood
correctly from the directions, I can't upload files through that
script and I tried it once and it did not work. If anyone has any
ideas then please help. Thanks
JeremyFor security reasons many shared hosts don't permit file
uploads.
Try this in the interim
http://www.yousendit.com/
--Nancy
"dayencom" <[email protected]> wrote in
message
news:epo2ql$dsb$[email protected]..
> I just tried contacting my hosting provider:
www.ixwebhosting.com and the
guy
> was not helpful at all. He said that their hosting does
not support
uploading
> files. So I am drawing a blank now. Is there any way to
use maybe another
site
> to upload?
>
Maybe you are looking for
-
Webpages open in browser, not the stageWebView?
Hi, I have an app that I'm just doing some minor updates on after having successfully published it to both Google and Apple's app stores (http://flashgamer.com/apps/ ). The app consists of several lists and UI-elements done in Flash and will eventual
-
Hi Following is our environment DB Version: Oracle 11g R2 (11.2.0.3.0) 64bit OS : OEL 5U2 Characterset: AMERICAN_AMERICA.AR8MSWIN1256 We have an opensource application built on php. CHARSET was defined as AR8MSWIN1256 in the configuration file. Data
-
Flowing of Excise Duty in MIRO
Hi Expert, We mean to know that excise part flowing from condition types in MIRO , can be map it , it should flow from excise part, captured in J1IEX based on GR.. Thanks, Dharmveer
-
Problem Granting access on Business Area to Role
Hello everybody, I am trying to grant access on a Business Area to a role but when I try to do so, the role does not appear in role list. It only shows role connect and resource. The version of Discoverer I am using is 10.1.2. Anyone has the same iss
-
Hi, all. I put an "Attachment Table" item in my page and I notice that: when I create a new record in the table where there is the declared attachment entity and the primary key that links the attachment record, the attachment table works fine; if I