Skip to main content
Tomáš Juřena
Senior
June 29, 2023
Question

How to upload text file with patch?

  • June 29, 2023
  • 1 reply
  • 1987 views

Hi,

I am trying to upload a txt file, that contains a git patch, but the editor keeps telling me, that the content of the file does not match its mime type. How can I upload it?

Screenshot_20230629_081856.png

Best regards,

Tomáš

    1 reply

    Laurids_PETERSEN
    Community Manager
    June 30, 2023

    Hi Tomáš,
    Try to remove the ".patch" part of the file and reupload it, let me know what the results are. 

    Best regards,
    Laurids Petersen

    Tomáš Juřena
    Senior
    June 30, 2023

    Hi,

    I have tried to remove the ".patch" substring, but the result is the same. I think that there is something wrong with the validation of the content because I am allowed to upload a different txt file (it contains some logs) with the same name as the original patch file (ie. 0001-mmc-mmci-stm32-Backport-changes-from-kernel-6.1.patch.txt).

    Best regards,
    Tomáš.

    Laurids_PETERSEN
    Community Manager
    June 30, 2023

    Hi Tomáš, 
    I sent you a PM. 

    Best regards,
    Laurids Petersen