[Seaside] Making a download page

AA aa at serendip.demon.co.uk
Fri Mar 11 10:12:39 UTC 2011

Thanks for looking at the headers.  Here's the rest of my code:

renderUploadOn: html
	html form multipart; with: [
		html fileUpload callback: [ :f | self uploadFile: f ].
		html submitButton text: 'Load' ]

uploadFile: aFile
	file := (FileDirectory default directoryNamed: self filePath) assureExistence;
		forceNewFileNamed: aFile fileName.
	[ file binary; nextPutAll: aFile contents ] 
		ensure: [ file close ].
	^ file


On Fri, 11 Mar 2011 11:11:45 +0200
Avi Shefi <avishefi at gmail.com> wrote:

> Amir,
> The headers look fine. I'm interested in your code, specifically from where
> you get a MultiByteFileStream.
> Could you elaborate please? maybe supply your code?

More information about the seaside mailing list