Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread [EMAIL PROTECTED]
Accidentally posted the first reply and you already beat me to my actual reply, wow. The "not feeling right" part meant to imply that the disadvantages I could see for both made me wonder if there wasn't another (and better) option available, but based on your answer it seems that won't happen

Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread [EMAIL PROTECTED]
Hi Malcolm, thanks for the fast reply. What is the downside of sticking this kind of information into a session, just that the session backend needs to carry this amount of information around and cookies have to be enabled for it to work? I otherwise would prefer it over (2) just for the cleaner

Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread Malcolm Tredinnick
On Sun, 2008-11-16 at 04:39 -0800, [EMAIL PROTECTED] wrote: > Hi Malcolm, > thanks for the fast response. I had thought about both approaches, but > both didn't feel 100% right (more a gut feeling than anything). Then you're going to have provide more information about what would "feel right",

Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread [EMAIL PROTECTED]
Hi Malcolm, thanks for the fast response. I had thought about both approaches, but both didn't feel 100% right (more a gut feeling than anything). On Nov 16, 1:16 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-16 at 12:58 +0100, Stefan Wallner wrote: > > p,,,[ > > > My

Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread Malcolm Tredinnick
On Sun, 2008-11-16 at 12:58 +0100, Stefan Wallner wrote: p,,,[ > My basic idea would be to use the same URL and view/template for > getting the directory listing and posting a file for uploading to it. > If a file is uploaded successfully the renamed file name and the users > that received

Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread Stefan Wallner
Hi, I am confused on how to best use the post/redirect/get pattern for the following problem: Part of the application I am writing is a basic file manager, i.e. it lists directory contents to users and lets users download files or upload a file to the directory. Upon upload the file is