Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm developing a small app in winforms using dotnet 5 to upload files to a container in the azure portal.. by the way it's working fine, but now i'd like to develop a service to upload a folder (not a single file), but cant figure out how to do it. It's not like to upload files. Somehow it's different and I've been looking for it for so long but cant find a solution.
Does anyone have an ideia?
Cheers
If you are trying to upload an entire folder through your service programmatically, note that it is not supported.
Simply, you can create your blob called folder/1.txt for example, and it will work. No need to create a directory. So, to sum it up, you can create a folder like this and start uploading your files in that folder.
Check out Microsoft Azure: How to create sub directory in a blob container for more details.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I created an excel report within the Azure function. I am trying to launch this excel file at the end of the process. But I get this error this is not supported in the OS.
I tried the following code.
System.Diagnostics.Process.Start(reportSavePath);
How you open the newly created file will depend upon the type of trigger that you are using in your function. It doesn't make sense to try to open the file within the context of the function itself, as that is just code running on one of MS's server somewhere. You have a few options.
If you are using an HttpTrigger, you can return the file's byte stream in the response.
If you are using one of the queue, event, or timer type triggers, you'll need to save the file to some sort of external storage, like Azure Storage, before your function exits. You can then download the file from that storage.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am having an Web Application(ASP.NET MVC, C#), in which I have a functionality of uploading an excel which contains image path. So I need to know can I access the image files from the application?
PS: Images and Excel will be in the user system.
You could make the users send the real images within the file instead of sending only the paths. This would potentially generate a huge file to upload, but I don't know you application.
If image is at user location then there is no way you can access it (how insecure it would be if any website can access your image file in your system)
So your will need user to upload image as well inorder to use it
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have specific trouble: I'm using Yandex.Disk cloud storage and working with this by Yandex.Disk REST API. I have some functionality for syncing data and saving to db. Specially it's file name, file md5, file download url. But trouble is that download url is temporary. And I'm looking for solution, to have ability for apdating download url for all saved in db files, each 24 hours. First solution I found is another project that will be launching by windows task scheduler, but my hosting provider not giving this ability. Help me please to find good solution for this.
You can probably use hangfire http://hangfire.io/ to create a recurring task within your ASP.NET application.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
AFAIK attackers can overwrite files which have CHMOD values 777 on linux servers. Today my web site which created by myself using ASP.NET has been hacked. My Site.master page has been appended with lots of backlinks and there was a folder named as Sayers which has many html files (probably include search keys).
I could easily delete the folder and restore the original Site.master file.
I do not have SQL injection problem. Even if so I would have seen some additions or changes in the records. There is nothing. There are only changed files and added folder.
I have updated my FTP password. I am 100% sure that I do not use a third party extension. All the code is handmade (: So I want to know how to prevent this to be done again. Also what could be the vulnerability about the website. I also want to know if it is a server side problem or my problem.
I am using a hosting company's service. I use FTP (21), not secure.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to ask how can I copy files from PC to MAC using C#. Also my application will create new folder when needed and copy / move files in them
By which technology you want to move files ?
1- Over the network ? using Directory access protocols ?
2- Through Web ?
Each has different aspects. as for network you just need to have access to mac on windows computer and tell them path. using **SYSTEM.IO** name space you can easily copy files from one directory[Windows] to other[MAC] using their path. Window will take care of permissions but be sure the user which you are using to access has write permission to folder where you are copying files.
Through web you might need to implement web programming to read and write each file you post.