I do not know what is going on. Le vendredi 26 mai 2017 21:35:41 UTC+2, Dave S a écrit : > > I have a function shove() with decorator @request.restful(), used to > handle uploading a file, and as part of moving to https, I have a check for > https and redirect if it isn't s-full. > > > @request.restful() > def shove(): > if not request.is_https: > redirect(URL(shove, args=request.args, scheme=https, host=True)) > def POST(*args, **vars): > etc > > > This almost works, but the file being uploaded is a zip-file (by extension > and by method of creation), > > and the redirect is to " > https://myserver.my/myapp/default/shove.zip/myarg0/myarg1" (with the > dot-zip elided, but with name not yet hashed). [Too much detail: myarg0 > is the tablename for the upload file tracking] > How do I get the dot-zip in the right place? > > Moving the check into the POST doesn't change the behavior. > > Thanks > > Dave > /dps > > > > >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.