JOSM upload saved local file

I made changes using JOSM. I could not upload them as my access token was disabled. Thus I’ve saved the changed data in a .josm file. I have managed to activate my token. Now I want to upload the changes.

When opening the .josm file JOSM does not allow to upload. Upload buttons are inactive in the menu.

When I download the same area the upload button is still active. When I open the .josm file and merge with the downloaded data the upload button becomes inactive. How to upload changes saved in a 'josm file?

Sounds like the file is discouraged or block from upload. Take a look at Info at the context (right-click) menu in the layer list in the right panel.

There are several states available, see Help/Menu/OSMLayer – JOSM. You might need to change the state manually opening the file in a text editor as only some states are supported to be changed within the GUI.

P.S.: Don’t forget to update the data prior to upload.

Thanks, this was the problem. The .josm file had the attribute locked = ‘true’. After changing this to ‘false’ the upload was possible. Still I’m wondering why this happened? All changesets saved to .josm file will be locked?

You are welcome.
No, these attributes can only be set manually by a user. Though, they are kept/inherited if you load a file with these attributes and if you merge data layers.