• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOUpload different behaviour on deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOUpload different behaviour on deployment


  • Subject: WOUpload different behaviour on deployment
  • From: David Holt <email@hidden>
  • Date: Thu, 13 Jan 2005 10:12:01 -0800

Hello,
I have a forum that uses WOUpload on the posting page. If the post contains an attachment, I send the user to a page that allows the user to enter detailed metadata about the document. If the post doesn't have an attachment, the user is returned directly to the forum. On my development server (OSX 10.3.7 WO 5.2.3) it works as expected. On my deployment server (OSX Server 10.2.8, WO 5.2.1) if there is no file upload, the filepath is set to 0.9.0.0.2.7.0 in the database and always sends the user to the metadata page, even if there is no upload. Does anyone know why this might be happening?

Here is the code:

.wod
--
FileUpload1: WOFileUpload {
filePath = aFileName;
size = "20";
data = aPost.attachment;
}

EO class file
--

// Instance variables for the name, mimetype of the file upload
public String aFileName;
public String aMimeType;
public String tempFileName;

if ( (aFileName != null) && (aFileName.length() > 0) ) {
int length1 = aFileName.length();
String tempFileName = "";
int i=0; i< length1; i++) {
if(aFileName.substring(i, i"\\")) {
tempFileName="";
} else {
tempFileName = tempFileName + aFileName.substring(i,i+1);
}
}
aPost.setFilepath(tempFileName);
// return tempFileName;
// }




NSLog.out.appendln( "FileName: "+tempFileName );
// aPost.takeValueForKey(tempFileName, "filepath");


nextPageString = "UploadDocument";






} else {
NSLog.out.appendln( "No File Uploaded" );
nextPageString = "ForumTopics";
}


WOComponent nextPage = pageWithName(nextPageString);
return nextPage
}



--
Panic is not an effective, long-term organizing strategy.
<x-tad-smaller>
Starhawk

from Sunbeams: http://www.thesunmagazine.org</x-tad-smaller>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WOUpload different behaviour on deployment
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Deriving string attributes
  • Next by Date: WOApplet (close to success...)
  • Previous by thread: Re: Deriving string attributes
  • Next by thread: Re: WOUpload different behaviour on deployment
  • Index(es):
    • Date
    • Thread