If you've got the availability of developers you can write a custom upload web part to do this using ASP.NET and the object model. Or you could write some client side javascript to validate the form elements which until valid disables the submit buttons.
From: [email protected] [mailto:[email protected]] On Behalf Of Paul Noone Sent: Wednesday, 18 March 2009 9:22 AM To: [email protected] Subject: RE: List Attachments Intended but flawed behaviour. The document shouldn't be uploaded until validation has been met. But the form should retain the path to the file and perform this as part of the final post. I don't like the idea of uploading it to a temp directory beforehand. Incidentally, how much do you enjoy the server error you receive if a blocked file type is uploaded? Lovely end user experience! From: [email protected] [mailto:[email protected]] On Behalf Of Trent Allday Sent: Wednesday, 18 March 2009 11:14 AM To: [email protected] Subject: List Attachments Hi Guys, Just wondering if this is known problem and if there is a workaround: Sharepoint attachments with server side validation. If a user is to attach a document when completing a form and accidently misses a required filed, the page will validate using server side (post back). When the user is brought back to the form the attachment is gone. The issue we are having is that users are oblivious that the attachment has not saved. The document should be uploaded during postback validation. Is there any way around this? Regards, Trent ________________________________ Support procedure: https://www.codify.com/lists/support List address: [email protected] Subscribe: [email protected] Unsubscribe: [email protected] List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists ________________________________ Support procedure: https://www.codify.com/lists/support List address: [email protected] Subscribe: [email protected] Unsubscribe: [email protected] List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.16/2005 - Release Date: 03/17/09 16:25:00 -------------------------------------------------------------------------------- Support procedure: http://www.codify.com/lists/support List address: [email protected] Subscribe: [email protected] Unsubscribe: [email protected] List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists
