Starts in:
0 DAY
12 HRS
48 MIN
13 SEC
Starts in:
0 D
12 H
48 M
13 S
Open Closed

About File Management #1459


User avatar
0
gvnuysal created

Hi support,

We updated our project from version 3.3.1 to version 4.3.2. We used a class belonging to the File Management module in the project. We could not find this class in the new version.

 CreateFileInput blobInput = new CreateFileInput
            {
                Content = input.Content,
                DirectoryId = null,
                Name = input.Name,
                MimeType = input.MimeType
            };

2 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @gvnuysal, CreateInputFile class has been replaced with CreateFileInputWithStream class.

    public class CreateFileInputWithStream
    {
        [Required]
        [DynamicStringLength(typeof(FileDescriptorConsts), nameof(FileDescriptorConsts.MaxNameLength))]
        public string Name { get; set; }
    
        public IRemoteStreamContent File { get; set; }
    }
    

    So your code can be changed like below,

    CreateFileInputWithStream blobInput = new CreateFileInputWithStream
    {
        File = input.Content,
        Name = input.Name
    };
    
  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06