I'm new here


Dear All,

I am getting the ERROR  while uploading the picture in FS

Java Code

media.getPicture(language).setPicture(resolution, Inputstreamsize, inputstream,


ERROR : The filename extension 'null (application/octet-stream)' is not included in the list of supported extensions ([bmp, gif, jpeg, jpg, pbm, pcx, pgm, png, ppm, raw, tif, tiff, wbmp]).

at de.espirit.firstspirit.service.mediamanagement.MediaConstraintsUploadHook.checkFsSupportedPictureExtensions(

at de.espirit.firstspirit.service.mediamanagement.MediaConstraintsUploadHook.checkMediaConstraints(

at de.espirit.firstspirit.service.mediamanagement.MediaConstraintsUploadHook.preProcess(

at de.espirit.firstspirit.server.mediamanagement.UploadHooks.callPreMethod(

at de.espirit.firstspirit.server.mediamanagement.UploadHooks.processPreUploadHooks(



Please help to resolve this issue

0 Kudos
2 Replies
Returning Responder

Hi Vasanth,

what kind / type of picture you want to upload?

It seems that the parameter "filetype" is not set correctly as mentioned in the error message. "null (application/octet-stream)" is definitely not a valid file type. You have to get the correct file extension like "jpg" or what so ever and pass it in this parameter. That has to be done in your java code depending on how you are getting and processing the picture.

See: Picture (FirstSpirit Access-API)

The allowed file types can be configured in the Servermanager of the corresponding project:


Best regards


0 Kudos

are you using the fs-access.jar?

If yes, there is a bug in this interface, please use try using the runtime jar instead.

stumbled over the same.


0 Kudos