weppy to emmet [dowload] #564
-
|
Hi, After migrating an app from weppy to emmett (2.7.1), I get an error when using download @app.route("/download/<str:filename>")
async def download(filename):
return response.wrap_dbfile(db, filename)Código de error: 404 Not Found On the server I have: The permissions are correct, the file exists, I don't know where to look |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
@josejachuf is this on a single file or all? |
Beta Was this translation helpful? Give feedback.
-
|
All files |
Beta Was this translation helpful? Give feedback.
-
class InformeReparticion(Signature):
tablename = "informes_reparticiones"
belongs_to({'tramite': 'Tramite'})
belongs_to({'reparticion': 'Reparticion'})
fecha = Field.date()
aprobado = Field.bool()
observaciones = Field.text()
archivo = Field.upload() |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Ok, there's a bug in
wrap_dbfile. Gonna push a new patch version ASAP.