0

I want to let user upload figma file and diplay those figma files as images in React application.

use case: User can upload his/her design as figma files and display as images

Can i do this task?

ELBEQQAL
  • 36
  • 2
  • 5

2 Answers2

1
  1. You need to use the API to authenticate the user.
  2. Then you need to prompt the user to type in the figma url of his project. Figma projects are not files, but urls.
  3. Then you parse the json from the API response and fetch all top level frames/artboards
  4. You need to instruct the user to have an export property added to all top level artboards. Then with the images API call you fetch the exported image and save it on your server
  5. Figma projects usually have multiple artboards so you need to fetch the images of all artboards.
dreamLo
  • 1,612
  • 12
  • 17
0

to convert the figma file to images, you need to select the file or layout that you want to convert and then go to top-right corner hover on figma logo, select files --> export.

then you can check/uncheck the files and click on export.

  • The OP want's to do it in a react application. – evolutionxbox Apr 21 '23 at 12:34
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 24 '23 at 20:17