bug fix for uploading binary data (needs to be tested), adding check for wavelengths in metadata