Running nextcloud on freenas

I have installed nextcloud on my freenas a week ago, and now have the time to upload my vacation pictures and films, and I have issues with uploading the movies in particular. I get the error message that says: Error when assembling chunks, status code 504
Did someone here has experienced the same / similar problem?