Your feedback is highly appreciated! Let's make Vertabelo even better.

0
Не ошибка

Google drive API - drive.files.create method - File id not found

Soujanya Bargavi 7 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 2

I'm trying to sent a file on some Google drive folder. To succeed I translate blob in file before sending it.

So far I have seen that there is some method like Buffer, Base64, and send Blob directly to Google drive.

I have tried to send the blob directly it failed. I'm a little confusing with Buffer and Base64 so I have rather tried to use the below BlobToFile function, seems it works to process but the file is not found.

I have tried fs.something but I think I got to mastery better the Buffer and Base64 concepts.

What I'm trying to do concretely is to translate some data received from a form in a client side, compute it in Node.js side, create a file again on Node.js side and send it directly to my Google drive folder without write it on my hard disk, just upload it on the Google drive web service.

But my console returns me :

Error: File not found. code: 404, errors: [ { domain: 'global', reason: 'notFound', message: 'File not found: 1aazdz3FOCADXUuOA5E7XcOaS3297sU.', locationType: 'parameter', location: 'fileId' } ] }

Here my reactApp.js to help you figure out what it happens :

  saveAudio() {
    // convert saved chunks to blob
    const blob = new Blob(this.chunks, {type: audioType});
this.setState(blob)
     } 
  // (...) then an HTTP POST request including the blob object.

Here my quickstart.js :

module.exports.uploadFile = function(req){
 var file ;
  console.log("driveApi upload reached")
  function blobToFile(req){
    file = req.body.blob
    //A Blob() is almost a File() - it's just missing the two properties below which we will add
    file.lastModifiedDate = new Date();
    file.name = req.body.word;
    return file;
  }
console.log(typeof 42);
// upload file in specific folder
var folderId = "1aa1DD993FOCADXUDNJKLfzfXcOaS3297sU";
var fileMetadata = {
  "name": req.body.word,
  parents: [folderId]
}
var media = {
  mimeType: "audio/mp3",
  body: file
}
drive.files.create({
  auth: jwToken,
  resource: fileMetadata,
  media: media,
  fields: "id"
}, function (err, file) {
  if (err) {
    // Handle error
    console.error(err);
  } else {
    console.log("File Id: ", file.id);
  }
  console.log("driveApi upload accomplished")
});
}
0
Отвечен

how can I pre-pay for multiple months?

davehk 6 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 2

I would like to pay for 6 months service, in advance.

0
Отвечен

Academic Account Clash

Julianne Simons 6 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 2

Hi I added an academic account after using a trial version then realising I was eligible. I joined the accounts together as a team to get my model, I have now closed my trial account, but my student account still shows as a trial version, please help

0
Отвечен

Problem with student account

Roman Hrybinchuk 6 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 2

Hello , i have got a problem like i am a student but i have limit operations and have to buy subscription , i dont know how to fix it 

0
Отклонен

I am retaired industrial engineer. I want to gain experience to use the web database in daily life.

mehmet 6 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 2
0
Отклонен

I am trying to upload spatial data from PostGIS (PostgreSQL with GIS extension) database but cannot find anything regarding spatial data. Is it technically possibile?

Maciek Drozda 6 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 2
0
Отклонен

In the logical model, when I draw a one-to-many relationship between a DIM and a FACT, it does not bring the PK of the DIM into the FACT; I am hand-typing the PKs into the FACT. Is there a plan to fix this ? There seems to be a lack of modeling logic .

Claire Frankel 6 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 2

Please see Header above, and there seems to be a lack of modeling logic in the Vertabelo Logical Modeler. PKs should migrate from DIM to FACT when the one-to-many relationship is drawn. Also we should be able to convert seamlessly from a logical model to an initial physical model. Please send instructions. Thank you.

Best regards,

Claire Frankel

nyclaire@aol.com

0
Не ошибка

Problem to open a shared model

Markiian Durkot 5 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 3

Hello, my coworker shared a model to me. When I click the invitation in my notifications it leads me to "Documents" and no shared database model is displayed. He also sent me a link to the model. When I click it I get to the same "Documents" page. I have an academic account.

Ответ
Jarosław Błąd (CEO) 4 года назад

As there are no more upvotes we decided to not consider this functionality. So I close the ticket.

0
Завершен

How to set postgresql double precision?

Martyn Jones 5 лет назад обновлен Jarosław Błąd (CEO) 4 года назад 3

Hi Guys,

New to using vertabelo, how do I set postgresql column to double precision? I'm migrating old parts of a mysql database that is using double columns.

Thanks.

Сервис поддержки клиентов работает на платформе UserEcho