Folder,File,Location,Website,Asp.net ,C# [Resolved]

Posted by Raja_89 under C# on 10/5/2016 | Points: 10 | Views : 1445 | Status : [Member] | Replies : 1
Hai

I am creating a website in ASP.NET c#
In that if user paste the file based on type
In which place could i create a folder to paste a file

Currently i have created a folder in bin

Is it fine
because since bin is important could i proceed with that
We should not get any issue after deployment
Kindly share your thoughts



Example

In school application
School -Main folder
Student and Staff -Folder names in school folder

Files from students and staff are pasted in student and staff foider
I am showing the contents in sub folder(Student and staff) based on file type(.bmp,.jpg..etc)

Regards




Responses

Posted by: Rajnilari2015 on: 10/11/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
@Raja sir,

Ideally No. You should create a separate folder by the name image. We use AngularJS as our FE technology while WebAPI as our BE. I the document attached, is what is folder structure we follow after deployment.

Coming to your example specifically,

In school application
School -Main folder
Student and Staff -Folder names in school folder
Files from students and staff are pasted in student and staff folder
I am showing the contents in sub folder(Student and staff) based on file type(.bmp,.jpg..etc)


In that case you should have a table design as (just a rough thought for your understanding)

ContentType	BlobType	BlobPath

----------- -------- ---------
Student bmp C:\students\images\1.bmp
Student bmp C:\students\images\2.bmp
Student jpg C:\students\images\3.jpg
Staff bmp C:\staff\images\1.bmp


Hope that clarifies your doubt.
 Download source file

--
Thanks & Regards,
RNA Team

Raja_89, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response