Bug #74
openPincode Validation Error and Image Preview/Send Button Not Working Correctly
0%
Description
- Pincode Validation Issue:
When entering a valid pincode, the system displays an error message stating that the pincode does not belong to the selected district and state, even when the location details are correct.
- Image Preview & Send Button Issue:
In the messaging/chat module, when a user selects an image, the preview is shown, but the image is not sent when the Enter/Send button is clicked. Users must click another button or refresh to send the image.
Tables Used (Reference Existing)
***ad_images / skill_service_images (or applicable image table)
Field Description
id (PK) Image ID
ad_id / listing_id (FK) Related ad or service listing
image_url Stored image path
state State name
district District name
pincode Location pincode
created_at Timestamp
***messages / chats
Field Description
id (PK) Message ID
sender_id (FK users.id) Sender
receiver_id (FK users.id) Receiver
message_type Text / Image
message_text Message content (nullable)
image_url Image path (nullable)
created_at Timestamp
***Validations
***Pincode Validation
If a valid pincode is entered:
*It should correctly match the selected state and district
*Error message should not appear
If pincode does not match:
*Show a clear and accurate validation message
***Image Preview & Send
When an image is selected:
*Preview should appear
*Clicking Enter / Send button should send the image immediately
Sent image should:
*Appear in chat window
*Be stored in the database
*Be visible to the receiver without page refresh