✅ file path not saving properly with id
I am creating a file with path Uploads/companyId.png
However. The companyId is 0 because i am creating newCompany after i create the path. And if i created it before it saves as Microsoft.AspNetCore.http... And i guess that's because i created the company with no path.
any idea how i can fix this? its so confusing
7 Replies
why not do what the comment says and to use a unique identifier like a guid instead because you don't know the companyid until it's been created
What do you mean?
I don't have any other unique identifiers
use a unique identifier like a guid instead
lolSorry don't know what guid mean
thankfully our friend google can probably help you with that
Mhmm googled it. Looks like what i need. Thank you
worked!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.