TrattTratt
TrattTratt
CC#
Created by TrattTratt on 10/20/2024 in #help
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
Ill have a look, thanks
41 replies
CC#
Created by TrattTratt on 10/20/2024 in #help
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
thanks a lot
41 replies
CC#
Created by TrattTratt on 10/20/2024 in #help
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
okay Ill try
41 replies
CC#
Created by TrattTratt on 10/20/2024 in #help
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
okay Ill try to maye it a secret to start with, as its a sensitive Api key
41 replies
CC#
Created by TrattTratt on 10/20/2024 in #help
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
okey Ill try to make it secret, thank you
41 replies
CC#
Created by TrattTratt on 10/20/2024 in #help
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
okay thanks, AI said I could GitIgnore launchsettings if thats easier?
41 replies
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
okay thanks
19 replies
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
ok
19 replies
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
thanks, okay, wierd that I cant find any simple solution for just accessing data from the db
19 replies
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
yes its the same db
19 replies
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
what do u mean with configuration loaded in both contexts? I tried adding DbSet FIles to this context as well but it said there already was an table named Files in db
19 replies
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
is it possible to access the data?
19 replies
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
To clarify im using the same sql db for two projects, my web app project (where I wanna get the File from the table FIles) and my azure functions project (where I have the Files in the context and where I set the File)
19 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
var testData = req.Form["testData"];
var testData = req.Form["testData"];
47 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
$code
47 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
its working! thanks a lot
47 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
im not sure
47 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
<TargetFramework>net8.0</TargetFramework> <AzureFunctionsVersion>v4</AzureFunctionsVersion>
47 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
might be something here? const formData = new FormData(); formData.append("file", e.target["file"].files[0]); formData.append("TestValue", "contentvalue"); //here I would like to be adding a string that I can get from my fileUpload function const res = await fetch("http://localhost:7036/api/Upload?containerName=products", { method: "post", body: formData, })
47 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
public async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "post")] HttpRequest req,[FromForm] MyCoolData data) { try { if(req.Form.Files["file"] is IFormFile file) { var containerName = !string.IsNullOrEmpty(req.Query["containerName"]) ? req.Query["containerName"].ToString() : "files"; var fileEntity = new FileEntity { FileName = _fileService.SetFileName(file), ContentType = file.ContentType, ContainerName = containerName }; var testValueContent = data.TestValue;
47 replies