I have a controller in my Masonite project and I can't figure out why it is throwing this error. Here is my code snippet:
def restore(self, view: View, upload: Upload):
upload.accept_file_types = None
filename = upload.store(self.request.input('dump'))
site = Site.find(self.request.input('site_id'))
site.server.connect().put(
static('disk', 'uploads/') + filename,
'/dumps/postgres/'+filename
)
return 'uploaded?' +