Hi John,
I think it needs to be wrapped in a form: [] ;)
Warm regards
John
On Wed, Oct 21, 2009 at 6:57 PM, John M McIntosh <
johnmci(a)smalltalkconsulting.com> wrote:
I'm looking at altering how the file upload work
in wikiserver on the
iphone
It appears that
MAFileUploadComponent>>renderUploadOn: html
html fileUpload
id: self labelId;
on: #upload of: self.
html submitButton
text: 'uploadX'
setups the submit button with the text 'uploadX' Yes yes it's normally
'upload' but I changed it
to 'uploadX' just to confirm that I've the right html.
Now as WIiServer users know on the iPhone, the "Choose file" button is
disabled because there
is no way for mobile safari to browse the file system on the iphone.
In this case I had expected that
WAFileUploadTag>>callback: and
WAFileUploadTag >>on: of:
gets called
which results in
MAFileUploadComponent>>upload:
But none of that happens when I press the 'upload' button.
Obviously something is deciding somewhere not to execute the callback:
So I'm wondering how or who is preventing that?
I had *wrongly* thought that upload: would be called with a nil file since
there was code there to check file is nil
--
===========================================================================
John M. McIntosh <johnmci(a)smalltalkconsulting.com> Twitter:
squeaker68882
Corporate Smalltalk Consulting Ltd.
http://www.smalltalkconsulting.com
===========================================================================
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
http://jmck.seasidehosting.st