<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="sans-serif"><br>
<br>
O.k. that works for me. <br>
<br>
I put an ?action=login link if it is the case the user is not logged in
and used<br>
your B) below in the form so that the buttons are only presented when
the<br>
login is done. <br>
<br>
Thanks!<br>
<br>
Graham<br>
</font><br>
Hans wrote:
<blockquote cite="mid:3398880.20080401115728@softflow.co.uk" type="cite">
<pre wrap="">Tuesday, April 1, 2008, 9:53:42 AM, Graham Archer - EMEA Sun Center Operations wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> I am using the Fox "file upload " feature and all goes well as
long as the user is already authenticated for editing....
</pre>
</blockquote>
<pre wrap=""><!---->
The file input control is quite special, as it does not just has a
value of a filepath and name, but an array of values associated with
the choosen file. These are not retained when a form is shown again
due to input errors, or as in the case where a login is required.
After login other form data is passed on, but the values from the
file input is lost. I do not know if the eis a method which will
retain these.
So I suggest you use conditional markup to
A) display a warning that the user needs to login first,
B) disable the form till logged in.
you can use for A above the form:
(:if !auth upload:)Please log in before filling in the form!(:if:)
for B inside the form:
(:if auth upload:)(:input submit post '$[Save]':) (:input submit cancel '$[Cancel]':)(:if:)
alternatively you could add a foxcheck:
(:foxcheck target if='auth upload' msg='Please log in!' :)
~Hans
_______________________________________________
pmwiki-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>
</pre>
</blockquote>
</body>
</html>