On my website, I use two types of file upload controls: regular asp. I created a custom WFFM control for this purpose and custom save action. Both controls are using the same code for email submission and the regular file upload files are going through perfectly, unfortunately, when I try to upload a file from Dropbox and open the attachment in the email I get an error message:. In the code I can see that the bytes[] file size which I get from regular upload is different from Dropbox.
Then I use Convert. ToBase64String file to pass this value as a string never mind why I need that but needs to be done in this way in the form to custom save action Send Email Message and I decode it back while attaching the file:.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. With your code i have implemented it in 5 min… Thank you so much. I want to upload files in Dropbox. Can you please help me for this.. Thanks in advance. Hey glad to hear it work for you and take just 5 minutes.
There should be easy code to upload as well. I am having trouble to redirect the user to dropbox page. What exactly should i put in place of redirect uri.. Please help me.
Hi, this code will download the file with content as well, could you please share your code. So, I can have a look what you are doing wrong. Thanks a lot for your quick reply. Here is our code please help to sort this code. FilesAsync file. Delete ;. Hi,I have the same problem…The size of the downloaded file is 0…Should the redirectUri be the same as in your code? Name, folder. SerializeObject files ;. I can help on weekend, If it work for you?
This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Web Client. Download File Method Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System. We recommend just using the official. The response body should contain a more useful error message. Checking the response body is generally the best first step in debugging these. Can you print that out? Thanks in advance!
You should update your code to take your parameters and format them as a JSON string for use in the request body. Work Smarter with Dropbox The way we work is changing. Sound good? Let's get started. Who's talking.
0コメント