Omitir navegación
Ampliar
Passing file name in Set file method of Core API
ID de respuesta 9260   |   Revisado 24/12/2018

How do we pass filename in Set file property method of Core API?

Environment:

Applies to all Oracle Field Service (OFS) versions

Issue:

We are using Set file property method of Core API (REST API) to add files to activities.

We don't know how to specify the filename, with extension, while calling the Set file property method. This makes the file appear in Core Manage / Mobility UI without a relevant name, creating confusion.

Resolution:

You can make use of the HTTP header parameter Content-Disposition.

Please add this parameter as: Content-Disposition: attachment; filename="filename.extension", where filename.extension is the file you are passing in the body of the request.

For further information regarding Set file property method, please read documentation here: Set file property method.

Lenguajes disponibles para esta Respuesta:

Notificarme
La página se refrescará al enviar. Las entradas pendientes se perderán.