Activities of "a.mourad"

    public virtual async Task<List<AppFileDescriptorDto>> UploadFilesAsync(List<IRemoteStreamContent> inputs)
    {
        var uploadedFiles = new List<AppFileDescriptorDto>();

        foreach (var input in inputs)
        {
            var id = GuidGenerator.Create();
            var fileDescriptor = new AppFileDescriptors.AppFileDescriptor(id, input.FileName, input.ContentType);

            try
            {
                byte[] fileBytes;

                // Read the stream **once** into a byte array
                await using (var originalStream = input.GetStream())
                {
                    if (originalStream == null || !originalStream.CanRead)
                    {
                        throw new InvalidOperationException("Invalid stream: The stream is null or unreadable.");
                    }

                    using (var memoryStream = new MemoryStream())
                    {
                        await originalStream.CopyToAsync(memoryStream);
                        fileBytes = memoryStream.ToArray(); 
                    }
                } 

                // Insert file metadata into database
                await _appFileDescriptorRepository.InsertAsync(fileDescriptor);

                // Create a fresh stream from the byte array for saving
                await using (var finalStream = new MemoryStream(fileBytes))
                {
                    await _blobContainer.SaveAsync(fileDescriptor.Id.ToString("N"), finalStream);
                }

                // Map to DTO
                var dto = ObjectMapper.Map<AppFileDescriptors.AppFileDescriptor, AppFileDescriptorDto>(fileDescriptor);
                uploadedFiles.Add(dto);
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Error processing file {input.FileName}: {ex.Message}");
                throw;
            }
        }

        return uploadedFiles;
    }

Hi, currently there is no default attribute that adds an add button to the modal. For that purpose, you should manually add the button and implement your logic (redirecting to the create modal, for example).

Regards.

???????

i am using abp-input-select and i want when open pickup modal that select value add add btn to add value of entity if not exist in the list and this can produced by opening the add modal of this entity how can i do this in angular

Hello, I didn’t fully understand your question. Could you share the steps to reproduce the issue?

Also, if you can include the property types you used when creating the entity and any related navigation details, it will help us find the right solution.

is there exist attribute that support to add new btn to open the model for adding entity record if not exist in list without go to page it self i want to add record if not exist to list from page i am using angular

i am using angular how can find this template i search it in abp suite and can not found it !!!

how can i add this and this is built in component and not ability to customize its functionality i am using pickup model of select

is there exist attribute that support to add new btn to open the model for adding entity record if not exist in list without go to page it self i want to add record if not exist to list from page

it is too much we purchase commerical version and have many problems in using Abp suite till now since four days can not enable to make one page because of error occure to us in using abp suite although no error in application we need urgent solution or meeting to solve our problems we need solution for these problems

i think we purchase abp to save our time in coding not waste our time !!!!!!!!!!!!!!!!!!!!!

all projects already built well i do not know where the problem !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Showing 1 to 8 of 8 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 14, 2025, 11:57