That is true. Reason is that in case of a zip upload it could also be many files being created.
Solution depends on use case. In gui you can use summary to see the gcode id if you just need it for a script.
For an automated solution you can list the uploaded g-codes. Newest upload has the highest id and of course same name, so you can still get it if needed.