Avatar

Correct answer by
Community Advisor

Hello somasundaramh14124455​,

the thing is the sandbox is all in one and in production environment  you would have multiple resource servers that can be installed on different physical servers across the network. So you need to publish those files either by using method PublishIfNeeded after you saved the file locally and to database or manually upload everything to each server respectively.

fileRes.PublishIfNeeded ();

PS:

Check JSAPI for fileRes

BR,

Marcel

View solution in original post