Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Uploading files to server

Hello, Prashant

This is a message from file databaseUtils.js. It means that your upload_service must pass this validation:

isCorrectService = options.type === 'post' && options.contentType === false && /^.*\/files$/i.test(options.url);
(line 6 databaseUtils.js)

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Uploading files to server

I have placed the screen shot of upload service above. Please suggest me what changes I need to make it work. Please note that I am making a service call to my server and not to appery db

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Uploading files to server

What does this mean:contentType === false && /^.*\/files$/i.test(options.url);

Does this mean that I need to send service reqest to the url which ends with word "file". Does that mean I cant send the file to my server.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Uploading files to server

Hello,

The settings of your own upload_service must match the settings of appery.io built-in upload_service in this case.
/^.*\/files$/i.test(options.url); Right, it means that url must end with "files" : https://developer.mozilla.org/en-US/d...
You can override this validation in file databaseUtils.js
tab Source WEB_RESOURCES/files/resources/lib/base

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Uploading files to server

I need to send files to my server and store it there using the php script. Can you please suggest the right documentation which I can refer for the same.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Uploading files to server

Hello,

You can't use php in appery.io UI builder. You can implement your own service with REST API and then use it in appery.io:
http://docs.appery.io/documentation/r...

Return to “Issues”