Uploading html files via python
AnsweredHi,
I hope this finds you well.
I have been facing a problem when uploading html files to Box via python. For some reason, when the html files are uploaded to Box and I open them, I get the underlying html code instead of the actual contents of the file.
I have tried to convert the html file to pdf via python and then upload said python file to Box, but between those 2 actions I have found that the quality of the depicted graphs decreases to a considerable extent.
Is there a way for me to upload html files directly?
Thank you in advance for your time.
Kind regards,
Dimitris
-
Actually you see html code when opening .html file not because of it was uploaded by python, but because it's how content preview is working on Box for .html files.
If you will put a html file manually to Box through your browser, the result will be the same.This is because .html file is displayed in content preview as text-based document (please look here)
-
Hi Dimitris Papadimitriou
Correct, currently it's not supported.
Regards,
Artur
Please sign in to leave a comment.
Comments
3 comments