arms
Well-known member
I'm trying to add an image when creating thread.
I've setup my plugin to use a service and works great on editing.
But I'm having problems getting my head around how to add to a new thread.
I've set it to run in finalizeThreadCreate(running here as need a thread_id), but if there is an exception (file too big) and show it, The thread is already saved and posted, therefore user would then fix the error and it would create a duplicate.
It works fine if there's no error but any advice appreciated.
I've setup my plugin to use a service and works great on editing.
But I'm having problems getting my head around how to add to a new thread.
I've set it to run in finalizeThreadCreate(running here as need a thread_id), but if there is an exception (file too big) and show it, The thread is already saved and posted, therefore user would then fix the error and it would create a duplicate.
It works fine if there's no error but any advice appreciated.