i have an app that allows a user to upload a file to a database. then, in the background, i want to move the file to a different folder.
i am trying to use a background worker to do the file move but i always run into this error:
the process cannot access the file because it is being used by another process.
so i'm guessing it is still doing the file read/upload to the database (it works fine for really small files)
how can i do the move once the upload is complete?
i tried putting the actual upload piece in a background worker but it gives me an error saying the filename can't be null even though i check it and it isn't null.
i am trying to use a background worker to do the file move but i always run into this error:
the process cannot access the file because it is being used by another process.
so i'm guessing it is still doing the file read/upload to the database (it works fine for really small files)
how can i do the move once the upload is complete?
i tried putting the actual upload piece in a background worker but it gives me an error saying the filename can't be null even though i check it and it isn't null.