Access files uploaded to Parse.com after Heroku migration

I am trying to migrate my server from Parse.com to Heroku using one-click migration. Their documentation says that Parse Server supports the file type, but I cannot find the documentation for transferring these files so that Heroku can access them.

+4
source share
1 answer

This is not an answer, but I had the same problem / dilemma, and I have partial information that may be useful in the long run when searching for an answer. I made a migration and looked at some things that are happening.

Example, photoObj.get('file').url();

Parse Hosting: : http://files.parsetfss.com/parseFileKey/fileName.ext

S3. : https://s3.amazonaws.com/files.parsetfss.com/parseFileKey/fileName.ext

Heroku/MongoLab, photoObj.get('file').url() : http://files.parsetfss.com/newHostFileKey/fileName.ext

newHostFileKey - , parse-server , , .

, Parse Hosting /db.


. , , - : http://newHostURL/parse/files/appID/fileName.ext

parse - , , app.use('/parse', api);

appID - , ,

var api = new ParseServer({ appId: 'appID', fileKey: 'newHostFileKey' });

URL- Parse Hosted ( ) ..

, URL-.


, , , MongoLab /. fs.chunks fs.files

fs.chunks ( ). , heroku/mongolab , , "".


Parse , , , , .

+1

Source: https://habr.com/ru/post/1627515/


All Articles