Closed habibulilalbaab closed 1 month ago
I remember there was a similar issue that was fixed - https://github.com/mediacms-io/mediacms/issues/41 - are you uploading using the web or through the API? Does the problem happen when uploading a media with a Russian title too, is it in description, or somewhere else (eg tags/categories)?
I uploaded via API, and when I tried to upload through the web interface just now, I encountered an error (attempt 2 of 2). Currently, I'm focusing on the title and description and have not yet tried creating tags or categories.
debug.log upload from web interface
Internal Server Error: /fu/upload/
Traceback (most recent call last):
File "/home/mediacms.io/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/mediacms.io/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/mediacms.io/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "/home/mediacms.io/mediacms/uploader/views.py", line 49, in dispatch
return super(FineUploaderView, self).dispatch(request, *args, **kwargs)
File "/home/mediacms.io/lib/python3.10/site-packages/django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
File "/home/mediacms.io/lib/python3.10/site-packages/django/views/generic/edit.py", line 153, in post
return self.form_valid(form)
File "/home/mediacms.io/mediacms/uploader/views.py", line 55, in form_valid
self.upload.combine_chunks()
File "/home/mediacms.io/mediacms/uploader/fineuploader.py", line 98, in combine_chunks
self.real_path = self.storage.save(self._full_file_path, StringIO())
File "/home/mediacms.io/lib/python3.10/site-packages/django/core/files/storage/base.py", line 38, in save
name = self._save(name, content)
File "/home/mediacms.io/lib/python3.10/site-packages/django/core/files/storage/filesystem.py", line 106, in _save
fd = os.open(full_path, self.OS_OPEN_FLAGS, 0o666)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 84-90: ordinal not in range(128)
I cannot reproduce it, just uploaded a file with russian title in file name and it finished well. This has been an issue on an older version, so I believe your installation is using an old version. Try to update and re-upload
Describe the issue When uploading media with Russian language content (e.g., metadata or text), the server consistently returns a 500 Internal Server Error. This issue occurs specifically when the media contains Russian text, and normal uploads without Russian content are processed successfully.
To Reproduce Steps to reproduce the issue:
Expected behavior The upload should proceed without 500 error.
Environment OS: Ubuntu Linux Installation method: Standalone
Additional context This issue affects Russian language content uploads only.