A new topic to avoid drowning in the general PTP discussion.
I have confirmed that when uploading a file beyond a certain size, it is corrupted in two locations.
This has been checked on an A460 using ptpCamGui, mweerden's original ptpcam version and my own ptpcam version.
It will also affect the executing of Lua scripts if the data length of the USB packet exceeds 36 bytes.
Try uploading the attached file using ptpCamGui or ptpcam.exe.
To check it, either remove the card from the camera or download back to the PC.
On my camera after the second 'J', the characters 'K' and 'L' are missing.
Two 0xFF bytes have been inserted at the end of the file pushing the existing data left two places but not intruding into byte 36.
Does the problem exist on other cameras ?
David