RoboticOperatingBuddy
Add a file upload to an ASP.NET project
swear to god I need a rubber ducky, because I keep finding solutions for my problems like right after I post here '^^
swapped the if statement for
@if (String.IsNullOrEmpty(item.PictureLink))
works7 replies
Add a file upload to an ASP.NET project
Sadly now I'm struggling to show the picture, in a way.
I have 2 records, one where PictureLink is NULL, one where it's a filename.
Seems that no matter what condition I put into the if statement, it always seems to return the same value for both...
7 replies
Add a file upload to an ASP.NET project
okay scratch the above, I didn't go with saving to database, I went with saving locally instead. I know local saving from another project I did with PHP, so I'm much more comfy with this concept.
I did still run into an issue however, while the new view does show the proper picture field, uploading it doesn't work. I'm receiving "The picture field is required" on clicking "Create", with no apparent way to continue. Any ideas?
Current model:
Current controller:
7 replies