I found out that setting adding a slash in the path fixes the behaviour:

  Field('logo', 'upload',  uploadfolder=request.folder+'*/*static/images'),
instead of
    Field('footer', 'upload',  uploadfolder=request.folder+'static/images'),
Does anyone know why all this is?



Am Sonntag, 24. November 2019 18:17:49 UTC+1 schrieb Stephan:
>
> Hello,
> with the latest web2py version and Catalina, I found that the file upload 
> does not behave like before. When doing a file upload with sqlform grid, 
> with the uploadfolder set to static "uploadfolder=request.folder+'static'" 
> in the models, the files are stored outside the app, in a newly created 
> folder 'static*applicationname*' in under the 'applications' folder 
> instead of being stored in 'app/static'.
> Thanks for your help.
> Stephan
>
>   
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a80e75c1-551e-432f-addb-e6c257eb4b6b%40googlegroups.com.

Reply via email to